{"id":28274607,"url":"https://github.com/10xengineersqualityprogramming/zerosurge.js","last_synced_at":"2025-06-16T08:31:17.711Z","repository":{"id":259028407,"uuid":"876258895","full_name":"10xEngineersQualityProgramming/ZeroSurge.js","owner":"10xEngineersQualityProgramming","description":"The future is here.","archived":false,"fork":false,"pushed_at":"2025-05-31T00:30:38.000Z","size":137,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T17:11:21.258Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/10xEngineersQualityProgramming.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-21T17:01:10.000Z","updated_at":"2025-05-31T00:30:41.000Z","dependencies_parsed_at":"2025-05-31T01:48:54.556Z","dependency_job_id":"ced84f07-0418-4662-b7e7-7954bf0486e8","html_url":"https://github.com/10xEngineersQualityProgramming/ZeroSurge.js","commit_stats":null,"previous_names":["tj-commits/zerosurge.js","10xengineersqualityprogramming/zerosurge.js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/10xEngineersQualityProgramming/ZeroSurge.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2FZeroSurge.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2FZeroSurge.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2FZeroSurge.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2FZeroSurge.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10xEngineersQualityProgramming","download_url":"https://codeload.github.com/10xEngineersQualityProgramming/ZeroSurge.js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2FZeroSurge.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260126217,"owners_count":22962604,"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":"2025-05-21T02:11:34.845Z","updated_at":"2025-06-16T08:31:17.705Z","avatar_url":"https://github.com/10xEngineersQualityProgramming.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZeroSurge.js\n\u003cimg src=\"https://i.postimg.cc/xj7bnV4w/bad-logo.jpg\" width=\"400\"\u003e\n\n\u003csup\u003e\u003csub\u003e\u003ci\u003e(i apologize for the terrible logo.)\u003c/i\u003e\u003c/sub\u003e\u003c/sup\u003e\n\n\u003e The fastest zero utility library on the internet.\n\nTired of painstakingly trying to find the character 0 on your keyboard and then pushing the button, or don't remember how to use the number zero in JavaScript? Well, this library is the new way to zero. ZeroSurge.js is the future!\n\n## Installation\nYou can include Zerosurge in your project using your favorite package manager:\n\n\nNPM:\n```bash\n$ npm install zerosurge\n```\n\nYarn:\n```bash\n$ yarn add zerosurge\n```\n\nPNPM:\n```bash\n$ pnpm add zerosurge\n```\n\n## Usage\n\n### Enums\n\n`ZeroCalculationMethod`\nThis enum defines the calculation methods available for the `returnZero` function in the library:\n- **CreashaksOrganzine**: Method 1 for zero calculation. This uses the string \"creashaks organzine\" and uses the Minecraft seed input algorithm to make the number zero from it.\n- **NumberPrototypeValue**: Method 2 for zero calculation. This uses the `Number` class prototype to return zero.\n\n### Functions\n\n`returnZero(options?: ReturnZeroOptions): number`\n\nThis function returns the number zero. You can specify the calculation method and whether to enable logging.\n\n#### Example\n```js\nimport trueValue from 'true-value'; // you should always use tj-commits's true-value or mde's true library. never directly use the keyword true.\nimport { returnZero, ZeroCalculationMethod } from 'zerosurge';\n\nconst zeroValue = returnZero({\n  method: ZeroCalculationMethod.CreashaksOrganzine,\n  loggingEnabled: trueValue\n}); // outputs some logs\n\nconsole.log(zeroValue); // Outputs: 0\n```\n\n\u003chr\u003e\n\n`isZero(value: any, loggingEnabled?: boolean): boolean`\n\nThis function checks if a given value is zero. If logging is enabled, it will log the evaluation process to the console.\n\n```js\nimport trueValue from 'true-value';\nimport { isZero, returnZero } from 'zerosurge';\n\nconst result = isZero(returnZero({\n  method: ZeroCalculationMethod.CreashaksOrganzine,\n  loggingEnabled: trueValue\n}), trueValue); // outputs some logs from both isZero and returnZero\nconsole.log(result); // Outputs: true\n```\n\n## Logging\n\nWhen `loggingEnabled` is set to `true`, the library will log relevant messages to the console, allowing you to trace the internal workings of the calculations. If it is not `true` there will still be some logs because ZeroSurge uses other libraries in its core that may log things without user consent.\n\n## Contributing\nContributions welcome. You can contribute by opening a pull request or issue at our github repository.\n\n## License\nZerosurge is licensed under the 10xGPWTHPL License. See the [LICENSE](LICENSE) file for more details.\n\n## made with HEAVY BLACK HEART U+2764 ❤❤❤❤\n## 10xGPWTHPL Licensed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10xengineersqualityprogramming%2Fzerosurge.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10xengineersqualityprogramming%2Fzerosurge.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10xengineersqualityprogramming%2Fzerosurge.js/lists"}