{"id":15836973,"url":"https://github.com/afeiship/next-defaults","last_synced_at":"2026-01-03T19:56:42.515Z","repository":{"id":57122662,"uuid":"165208343","full_name":"afeiship/next-defaults","owner":"afeiship","description":"Set defaults value.","archived":false,"fork":false,"pushed_at":"2024-07-27T02:35:04.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T16:34:59.683Z","etag":null,"topics":["default","defaults","next","nx"],"latest_commit_sha":null,"homepage":"","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-11T08:34:11.000Z","updated_at":"2024-07-27T02:45:18.000Z","dependencies_parsed_at":"2024-10-26T22:05:16.673Z","dependency_job_id":"157b9b0d-4896-4dfc-83fb-201ebc3855ec","html_url":"https://github.com/afeiship/next-defaults","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":0.2222222222222222,"last_synced_commit":"a6963ece2b9ed0f5a7df2f802703cc59ae5559ab"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-defaults","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-defaults/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-defaults/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-defaults/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-defaults/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244744202,"owners_count":20502867,"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":["default","defaults","next","nx"],"created_at":"2024-10-05T15:20:21.901Z","updated_at":"2026-01-03T19:56:42.471Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","readme":"# next-defaults\n\u003e Set defaults value.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-defaults\n```\n\n## usage\n```js\nimport '@jswork/next-defaults';\n\n// primitive value\nnx.defaults(currentValue, defaultValue);\nnx.defaults(0, -1);           // 0\nnx.defaults(undefeind, -1);   //-1\n\n// object\nnx.defaults({ name: 'fei' }, { name: 'afei', age: 18 });\n// { name: 'fei', age: 18 }\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-defaults/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-defaults\n[version-url]: https://npmjs.org/package/@jswork/next-defaults\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-defaults\n[license-url]: https://github.com/afeiship/next-defaults/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-defaults\n[size-url]: https://github.com/afeiship/next-defaults/blob/master/dist/next-defaults.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-defaults\n[download-url]: https://www.npmjs.com/package/@jswork/next-defaults\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-defaults","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-defaults","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-defaults/lists"}