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

Suggestion: let the API accept a JSON object #72

Open
tommy-mitchell opened this issue Apr 6, 2023 · 0 comments
Open

Suggestion: let the API accept a JSON object #72

tommy-mitchell opened this issue Apr 6, 2023 · 0 comments

Comments

@tommy-mitchell
Copy link

If a package.json has already been parsed, it doesn't make sense to then have pkg-ok do it again:

// Override
function pkgOk(pkg: PackageJson, { fields = [], bin = [] }: Options = {})

Or maybe even from a string too:

function pkgOk(pkg: string, { fields = [], bin = [] }: Options = {})
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

1 participant