simple-token
Advanced tools
Comparing version
{ | ||
"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 | ||
============ | ||
[](https://travis-ci.org/esco/simple-token) [](https://coveralls.io/r/esco/simple-token) [](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) { |
4644
32.99%9
28.57%19
280%3
50%