array-function
v0.0.1
Published
Read JS function from JSON(Array) data.
Downloads
19
Readme
array-function
Read JS function from JSON data.
Install
$ npm install --save array-function
Usage
const arrayFunction = require('array-function')
const fn = arrayFunction(JSON.stringify(['foo', 'bar', 'zoo', {a: 1}]))
// return
{
name: 'foo',
args: ['bar', 'zoo', {a: 1}]
}
License
MIT © EGOIST