index.js
function readPackageJSON () {
	var pkg = JSON.parse(require('fs').readFileSync('./package.json'));
	var dependencies = pkg.dependencies ? Object.keys(pkg.dependencies) : [];
	var peerDependencies = pkg.peerDependencies ? Object.keys(pkg.peerDependencies) : [];

	return {
		name: pkg.name,
		deps: dependencies.concat(peerDependencies),
		aliasify: pkg.aliasify
	};
}
function readPackageJSON () {
	var pkg = JSON.parse(require('fs').readFileSync('./package.json'));
	var dependencies = pkg.dependencies ? Object.keys(pkg.dependencies) : [];
	var peerDependencies = pkg.peerDependencies ? Object.keys(pkg.peerDependencies) : [];

	return {
		name: pkg.name,
		deps: dependencies.concat(peerDependencies),
		aliasify: pkg.aliasify
	};
}
function readPackageJSON ( ) { var pkg = JSON . parse ( require ( 'fs' ) . readFileSync ( './package.json' ) ) ; var dependencies = pkg . dependencies ? Object . keys ( pkg . dependencies ) : [ ] ; var peerDependencies = pkg . peerDependencies ? Object . keys ( pkg . peerDependencies ) : [ ] ; return { name : pkg . name , deps : dependencies . concat ( peerDependencies ) , aliasify : pkg . aliasify } ; }
Extract package.json metadata
Extract package . json metadata