Skip to content

Instantly share code, notes, and snippets.

@travisperson
Created June 10, 2016 22:09
Show Gist options
  • Save travisperson/5c22adfd2e89b8b12ceb968ef62841eb to your computer and use it in GitHub Desktop.
Save travisperson/5c22adfd2e89b8b12ceb968ef62841eb to your computer and use it in GitHub Desktop.
var fs = require('fs')
var pkg = require('./package.json')
var deps = Object.keys(pkg.dependencies)
deps.forEach((dep) => {
console.log(dep + '=> '+ require.resolve(dep))
})
{
"name": "resolve",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"redux": "git+https://github.com/reactjs/redux.git"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment