Closed hemanth closed 8 years ago
It be useful to have some like:
const package = require('nice-package') package(module) .then(pkg => console.log(JSON.stringify(pkg, null, 2)) .catch(err => console.err(`No such module: ${module}`)
instead of
const got = require('got') const Package = require('nice-package') got('https://registry.npmjs.com/express', {json:true}) .then(function(doc) { var pkg = new Package(doc) console.log(JSON.stringify(pkg, null, 2)) })
❓
If yes, I am happy to do a PR @zeke.
I like this idea! Pull request welcome.
This became a module in itself, thanks! 👍
It be useful to have some like:
instead of
❓
If yes, I am happy to do a PR @zeke.