Skip to content

kesla/normalize-npm-registry-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

normalize-npm-registry-package Build Status

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

License

MIT

Generated by package-json-to-readme

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published