Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nyks

Package Overview
Dependencies
Maintainers
1
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nyks - npm Package Compare versions

Comparing version 0.7.14 to 0.8.0

crypt/md5.js

3

index.js

@@ -11,4 +11,7 @@ require('mootools');

require('./src/node/util.js');
require('./src/node/process.js');
require('./src/zero_functions.js');

5

package.json
{
"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;
}
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc