1.0.1 • Published 5 years ago

function-json v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

function-json

Build status Test coverage NPM version NPM Downloads Prettier Conventional Commits

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 or git 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)' or git 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 🐟