node package manager

pinf-it-package-insight

Status: DEV

Status: DEV

Package Insight

Package standards are evolving but there are various differences across communities.

This library attempts to generate a normalized package descriptor and manifest for any package that adheres to any of the following conventions:

npm install pinf-it-package-insight
const PACKAGE_INSIGHT = require("pinf-it-package-insight");

PACKAGE_INSIGHT.parseDescriptor("<path>" || <object>, {
	type: "<type>" || null
}, function(err, descriptor) {
	// `descriptor.raw`
	// `descriptor.notmalized`
	// `descriptor.combined`
	// `descriptor.warnings`
	// `descriptor.errors`
});
npm test

License

UNLICENSE