Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

simple-token

esco2.3kMIT0.1.0

Create a string representation of an object or primative

token, tokenize, tokenizer, toString, toSource, stringify, serialize

readme

simple-token

Build Status Coverage Status Code Climate

Create a string representation of an object or primative

var tokenize = require('simple-token');

tokenize(42);
// 42
tokenize('foo');
// '"foo"'
tokenize({ key: 'value' });
// $1
tokenize(function(){});
// $2