1.0.1 • Published 5 years ago
function-json v1.0.1
function-json
Make function to be serializable
Installation
npm install function-json
# or use yarn
yarn add function-json
Usage
const { stringify, parse } = require('function-json')
parse(stringify((a, b) => a + b))(1, 23) === 24
parse(
stringify({
fn: (a, b) => a + b
})
).fn(1, 23) === 24
Contributing
- Fork it!
- Create your new branch:
git checkout -b feature-new
orgit checkout -b fix-which-bug
- Start your magic work now
- Make sure npm test passes
- Commit your changes:
git commit -am 'feat: some description (close #123)'
orgit commit -am 'fix: some description (fix #123)'
- Push to the branch:
git push
- Submit a pull request :)
Authors
This library is written and maintained by imcuttle, moyuyc95@gmail.com.
License
MIT - imcuttle 🐟