Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 445 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 445 Bytes

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)
})