normalize-npm-registry-package
Normalize a package metadata from the npm registry
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install normalize-npm-registry-package --save
Usage
import normalize from 'normalize-npm-registry-package';
const registryPackage = {
versions: {
'not-valid-semver': {
// ...
}
}
// ... etc
};
// will normalize a npm registry package, like remove none-semver versions in .versions
normalize(registryPackage);
Tests
npm install
npm test
Dependencies
- immutable-object-methods: Update normal plain javascript object, immutable style. Simlar to how immutable.js, seamless-immutable etc does it but a lot smaller and simpler.
Dev Dependencies
- babel-cli: Babel command line.
- babel-core: Babel compiler core.
- babel-preset-es2015: Babel preset for all es2015 plugins.
- babel-tape-runner: Babel + Tape for running your ES Next tests
- package-json-to-readme: Generate a README.md from package.json contents
-
semistandard: All the goodness of
feross/standard
with semicolons sprinkled on top. - snazzy: Format JavaScript Standard Style as Stylish (i.e. snazzy) output
- tapava: the syntax of ava, run through tape
License
MIT
Generated by package-json-to-readme