Comparing version 0.6.1 to 0.7.1
{ | ||
"name": "nyks", | ||
"version": "0.6.1", | ||
"version": "0.7.1", | ||
"description": "nodejs exupery style", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -19,2 +19,4 @@ nyks provide a set of "missing" stuffs in nodejs basic api. | ||
Return full path of a binary in env PATH | ||
* path.extend_PATH(path[,path2, ..]); | ||
Extend system PATH with new directory | ||
@@ -21,0 +23,0 @@ ## util |
var fs = require('fs'); | ||
var path = require('path'); | ||
path.extend_PATH = function(npath){ | ||
var paths = process.env.PATH.split(path.delimiter).concat(Array.from(arguments)); | ||
return process.env.PATH = paths.join(path.delimiter); | ||
} | ||
@@ -5,0 +9,0 @@ path.which = function(bin){ |
15033
385
99
7