Comparing version 0.7.14 to 0.8.0
@@ -11,4 +11,7 @@ require('mootools'); | ||
require('./src/node/util.js'); | ||
require('./src/node/process.js'); | ||
require('./src/zero_functions.js'); | ||
{ | ||
"name": "nyks", | ||
"version": "0.7.14", | ||
"version": "0.8.0", | ||
"description": "nodejs exupery style", | ||
@@ -12,3 +12,4 @@ "keywords": [ | ||
"mootools": "^1.5.1", | ||
"mootools-more": "^1.5.1" | ||
"mootools-more": "^1.5.1", | ||
"ps-tree": "^1.0.0" | ||
}, | ||
@@ -15,0 +16,0 @@ "homepage": "http://github.com/131/nyks", |
@@ -57,2 +57,16 @@ nyks provide a set of "missing" stuffs in nodejs basic api. | ||
# Crypt | ||
## Utils | ||
* crypt/pemme(str, armor) | ||
Create a PEM encoded armor around a desired string (chunk size 65) | ||
* crypt/md5 (body) | ||
Return the base md5 bash | ||
* crypt/openssh2pem(body) | ||
Return the PEM version of an openssh public key (yeah !) | ||
# Natives | ||
@@ -83,2 +97,7 @@ ## Object | ||
## String | ||
* string/chunk(basestr, chunksize) | ||
Split a string into chunk of specified size. | ||
* String.prototype.startsWith(str) | ||
@@ -85,0 +104,0 @@ Return boolean |
@@ -5,2 +5,3 @@ require('./natives/array.js'); | ||
require('./natives/string.js'); | ||
require('./natives/function.js'); | ||
require('./natives/math.js'); | ||
@@ -7,0 +8,0 @@ |
Buffer.implement({ | ||
indexOf:function(chr) { | ||
indexOfc : function(chr) { | ||
for (var i = 0; i < this.length ; i++) | ||
if(this[i] ==chr) return i; | ||
return -1; | ||
}, | ||
indexOf : function(search, offset) { | ||
if(typeof search == "string") | ||
search = new Buffer(search); | ||
else if(typeof search == "number") | ||
search = new Buffer([search]); | ||
offset = offset||0 | ||
var m = 0; | ||
var s = -1; | ||
for(var i=offset;i<this.length;++i){ | ||
if(this[i] == search[m]) { | ||
if(s == -1) s = i; | ||
++m; | ||
if(m == search.length) break; | ||
} else { | ||
s = -1; | ||
m = 0; | ||
} | ||
} | ||
if (s > -1 && this.length - s < search.length) return -1; | ||
return s; | ||
} | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21849
24
560
131
3
+ Addedps-tree@^1.0.0
+ Addedps-tree@1.2.0(transitive)