0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/deps/npm/lib/install/is-dev-dep.js
Kat Marchán d44a9eb11b deps: upgrade npm to 3.10.8
PR-URL: https://github.com/nodejs/node/pull/8706
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2016-09-27 16:39:27 -04:00

9 lines
175 B
JavaScript

'use strict'
module.exports = isDevDep
function isDevDep (node, name) {
return node.package &&
node.package.devDependencies &&
node.package.devDependencies[name]
}