2.0.2 • Published 7 years ago

yek v2.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

yek

Greenkeeper badge

Yek is key spelt backwards. It changes "one", "two", "three" to onetwo and back. It is a simple library and does stresses on consistency to and fro. It's a bracket notation and is not customizable to be dot notation.

Build Status Coverage Status npm version bitHound Score

Example use cases

var atos = require('yek/atos');
atos(['one', 'two', 'three']);
// returns one[two][three]

var stoa = require('yek/stoa');
stoa('one[two][three]');
// returns ['one', 'two', 'three']

Usage

Install from npm.

npm install --save yek

Changing Array to String (atos)

var atos = require('yek/atos');
atos(['one', 'two', 'three']);
// returns one[two][three]

Changing String to Array (stoa)

var stoa = require('yek/stoa');
stoa('one[two][three]');
// returns ['one', 'two', 'three']

License

MIT

2.0.2

7 years ago

2.0.1

8 years ago

2.0.0

9 years ago

1.0.0

9 years ago