minify-registry-metadata

4.0.0 • Public • Published

minify-registry-metadata

this removes fields from registry metadata not required to install the module.

this is based on an internal npm rfc and im sure it will make its way to the docs soon.

var minify = require('minify-registry-metadata')
var request = require('request')

request.get('https://registry.npmjs.org/lodash',function(err,res,body){
  var minifiedLodash = minify(JSON.parse(body))
  console.log(minifiedLodash)
})

/minify-registry-metadata/

    Package Sidebar

    Install

    npm i minify-registry-metadata

    Weekly Downloads

    850

    Version

    4.0.0

    License

    ISC

    Unpacked Size

    4.95 kB

    Total Files

    4

    Last publish

    Collaborators

    • hashtagchris
    • reggi
    • npm-cli-ops
    • saquibkhan
    • fritzy
    • gar