Suppose I read a package.json file in as a string/json object. is it possible to create a package-lock.json file programmatically?
for example, something like this:
const pkg = require('./package.json');
const pkgLock = generatePackageLock(pkg);
does anything like this exist or do I HAVE to use the npm cli to do this?