{"id":17242780,"url":"https://github.com/imcuttle/function-json","last_synced_at":"2025-06-18T09:34:44.589Z","repository":{"id":45113339,"uuid":"186425031","full_name":"imcuttle/function-json","owner":"imcuttle","description":"Make function to be serializable","archived":false,"fork":false,"pushed_at":"2022-01-07T14:01:31.000Z","size":61,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T21:08:54.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imcuttle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-13T13:27:46.000Z","updated_at":"2020-06-19T05:54:43.000Z","dependencies_parsed_at":"2022-09-26T17:31:05.496Z","dependency_job_id":null,"html_url":"https://github.com/imcuttle/function-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imcuttle/function-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Ffunction-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Ffunction-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Ffunction-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Ffunction-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imcuttle","download_url":"https://codeload.github.com/imcuttle/function-json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Ffunction-json/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260527599,"owners_count":23022795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T06:14:02.994Z","updated_at":"2025-06-18T09:34:39.577Z","avatar_url":"https://github.com/imcuttle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# function-json\n\n[![Build status](https://img.shields.io/travis/imcuttle/function-json/master.svg?style=flat-square)](https://travis-ci.org/imcuttle/function-json)\n[![Test coverage](https://img.shields.io/codecov/c/github/imcuttle/function-json.svg?style=flat-square)](https://codecov.io/github/imcuttle/function-json?branch=master)\n[![NPM version](https://img.shields.io/npm/v/function-json.svg?style=flat-square)](https://www.npmjs.com/package/function-json)\n[![NPM Downloads](https://img.shields.io/npm/dm/function-json.svg?style=flat-square\u0026maxAge=43200)](https://www.npmjs.com/package/function-json)\n[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)\n\n\u003e Make function to be serializable\n\n## Installation\n\n```bash\nnpm install function-json\n# or use yarn\nyarn add function-json\n```\n\n## Usage\n\n```javascript\nconst { stringify, parse } = require('function-json')\n\nparse(stringify((a, b) =\u003e a + b))(1, 23) === 24\n\nparse(\n  stringify({\n    fn: (a, b) =\u003e a + b\n  })\n).fn(1, 23) === 24\n```\n\n## Contributing\n\n- Fork it!\n- Create your new branch:  \n  `git checkout -b feature-new` or `git checkout -b fix-which-bug`\n- Start your magic work now\n- Make sure npm test passes\n- Commit your changes:  \n  `git commit -am 'feat: some description (close #123)'` or `git commit -am 'fix: some description (fix #123)'`\n- Push to the branch: `git push`\n- Submit a pull request :)\n\n## Authors\n\nThis library is written and maintained by imcuttle, \u003ca href=\"mailto:moyuyc95@gmail.com\"\u003emoyuyc95@gmail.com\u003c/a\u003e.\n\n## License\n\nMIT - [imcuttle](https://github.com/imcuttle) 🐟\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Ffunction-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimcuttle%2Ffunction-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Ffunction-json/lists"}