pkg-ok icon indicating copy to clipboard operation
pkg-ok copied to clipboard

Suggestion: let the API accept a JSON object

Open tommy-mitchell opened this issue 2 years ago • 0 comments

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 = {})

tommy-mitchell avatar Apr 06 '23 01:04 tommy-mitchell