1.3.3 • Published 9 years ago

senson v1.3.3

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

senson

SenecaJS simplified jsonic

Install

npm install senson --save

Examples

Command and object

var senson = require('senson')

var test   = senson('run', {job:'count'})

console.log(test) // { job: 'count', cmd: 'run' }

Regular jsonic

var senson = require('senson')

var test   = senson('cmd:run,job:count')

console.log(test) // { cmd: 'run', job: 'count' }

Role only

var senson = require('senson')

var test   = senson('tasks.,job:count')

console.log(test) // { role: 'tasks', job: 'count' }

Role command

var senson = require('senson')

var test   = senson('tasks.run,job:count')

console.log(test) // { role: 'tasks', cmd: 'run', job: 'count' }

Simple command

var senson = require('senson')

var test   = senson('run,job:count')

console.log(test) // { cmd: 'run', job: 'count' }

License: MIT

1.3.3

9 years ago

1.3.2

9 years ago

1.3.1

9 years ago

1.2.6

9 years ago

1.2.5

9 years ago

1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago