🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-token - npm Package Compare versions

Comparing version

to
0.1.0

{
"name": "simple-token",
"version": "0.0.2",
"version": "0.1.0",
"description": "Create a string representation of an object or primative",

@@ -11,3 +11,5 @@ "main": "simple-token.js",

"scripts": {
"test": "mocha test/*-test.js --require test/config.js"
"test": "mocha test/*-test.js --require test/config.js",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --ignore-leaks --require test/config test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --ignore-leaks --require test/config test/"
},

@@ -19,4 +21,5 @@ "author": "Esco Obong",

"chai": "^1.9.2",
"istanbul": "^0.3.2",
"mocha": "^2.0.1"
}
}
simple-token
============
[![Build Status](https://travis-ci.org/esco/simple-token.svg?branch=master)](https://travis-ci.org/esco/simple-token) [![Coverage Status](https://coveralls.io/repos/esco/simple-token/badge.png)](https://coveralls.io/r/esco/simple-token) [![Code Climate](https://codeclimate.com/github/esco/simple-token/badges/gpa.svg)](https://codeclimate.com/github/esco/simple-token)
Create a string representation of an object or primative
```javascript
var tokenize = require('simple-token');
tokenize(42);
// 42
tokenize('foo');
// '"foo"'
tokenize({ key: 'value' });
// $1
tokenize(function(){});
// $2
```
var UID = 0;
var UID_KEY = '_mkuid_';
var UID_KEY = '_simple_token_uid_';

@@ -4,0 +4,0 @@ function tokenize(obj) {