1.3.3 • Published 10 years ago

senson v1.3.3

Weekly downloads
3
License
MIT
Repository
github
Last release
10 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

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.2.6

10 years ago

1.2.5

10 years ago

1.2.4

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago