array-functions
Read JS functions from JSON array.
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install array-functions 
SYNC missed versions from official npm registry.

array-functions NPM version NPM downloads Build Status

Read JS functions from JSON array.

Install

$ npm install --save array-functions

Usage

import test from 'ava'
import arrayFunctions from './'

test('main', t => {
	let json = [
		['foo', 1, 2],
		['bar', 1, 2]
	]

	json = arrayFunctions(json)

	t.same(json, [
		{
			name: 'foo',
			args: [1, 2]
		},
		{
			name: 'bar',
			args: [1, 2]
		}
	])
})

Related

License

MIT © EGOIST

Current Tags

  • 0.0.0                                ...           latest (5 years ago)

1 Versions

  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |