Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract core functionality into an NPM Module #468

Open
sgoggins opened this issue Apr 22, 2020 · 4 comments
Open

Extract core functionality into an NPM Module #468

sgoggins opened this issue Apr 22, 2020 · 4 comments

Comments

@sgoggins
Copy link

Hi,

I am new to this project and run it locally. I see a lot of great functionality for scanning repositories for some widely used languages for dependencies using requirements.txt (Python), package.json (Node stack/javascript), etc.

I am wondering if this could be refactored into an NPM installable module that projects like one I work on, Augur, could use. ( https://github.com/chaoss/augur ) ... I am impressed with what's possible, and think that kind of refactoring would make it easier for people who work on Augur to make upstream contributions back to this project.

Sean

@RichardLitt
Copy link
Contributor

This sounds like a good idea, to me. @znarf How much work do you think that would be?

@coderberry
Copy link

I believe the extraction wouldn't be terribly difficult. The code is very clean and I believe the majority of what we need is in the src/scripts folder

@znarf
Copy link
Member

znarf commented Apr 27, 2020

It depends what's the exact goal of the library and how its API looks like. What would be the key features of such library and what would be the data input? And data output?

Some pseudo-code of its usage would be welcome to see what you have in mind!

@RichardLitt
Copy link
Contributor

It depends what's the exact goal of the library and how its API looks like.

Makes sense to me. I think just the functionality in scripts/* that check for deps, but don't touch collective data. I believe the input would be the name of a repo or an org, with a token, output would be a list of deps. @sgoggins might have more ideas here.

@abitrolly abitrolly mentioned this issue Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants