{"id":20780181,"url":"https://github.com/xotic750/big-counter-x","last_synced_at":"2025-04-30T20:29:00.692Z","repository":{"id":2622115,"uuid":"47005104","full_name":"Xotic750/big-counter-x","owner":"Xotic750","description":"A big counter module.","archived":false,"fork":false,"pushed_at":"2023-01-04T21:54:49.000Z","size":3114,"stargazers_count":1,"open_issues_count":21,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T21:17:14.983Z","etag":null,"topics":["browser","counter","ecmascript","nodejs"],"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/Xotic750.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":"2015-11-28T01:04:39.000Z","updated_at":"2020-01-30T23:06:39.000Z","dependencies_parsed_at":"2023-01-13T11:58:53.608Z","dependency_job_id":null,"html_url":"https://github.com/Xotic750/big-counter-x","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fbig-counter-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fbig-counter-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fbig-counter-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fbig-counter-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xotic750","download_url":"https://codeload.github.com/Xotic750/big-counter-x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251777528,"owners_count":21642177,"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":["browser","counter","ecmascript","nodejs"],"created_at":"2024-11-17T13:32:43.425Z","updated_at":"2025-04-30T20:29:00.646Z","avatar_url":"https://github.com/Xotic750.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca\n  href=\"https://travis-ci.org/Xotic750/big-counter-x\"\n  title=\"Travis status\"\u003e\n\u003cimg\n  src=\"https://travis-ci.org/Xotic750/big-counter-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/big-counter-x\"\n  title=\"Dependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/big-counter-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/big-counter-x?type=dev\"\n  title=\"devDependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/big-counter-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://badge.fury.io/js/big-counter-x\"\n  title=\"npm version\"\u003e\n\u003cimg src=\"https://badge.fury.io/js/big-counter-x.svg\"\n  alt=\"npm version\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://www.jsdelivr.com/package/npm/big-counter-x\"\n  title=\"jsDelivr hits\"\u003e\n\u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/big-counter-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://bettercodehub.com/results/Xotic750/big-counter-x\"\n  title=\"bettercodehub score\"\u003e\n\u003cimg src=\"https://bettercodehub.com/edge/badge/Xotic750/big-counter-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://coveralls.io/github/Xotic750/big-counter-x?branch=master\"\n  title=\"Coverage Status\"\u003e\n\u003cimg src=\"https://coveralls.io/repos/github/Xotic750/big-counter-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\"\u003e\n\u003c/a\u003e\n\n\u003ca name=\"module_big-counter-x\"\u003e\u003c/a\u003e\n\n## big-counter-x\n\nA big counter.\n\n- [big-counter-x](#module_big-counter-x)\n  - [module.exports](#exp_module_big-counter-x--module.exports) ⏏\n    - [`new module.exports()`](#new_module_big-counter-x--module.exports_new)\n    - [`~get()`](#module_big-counter-x--module.exports..get) ⇒ \u003ccode\u003estring\u003c/code\u003e\n    - [`~next()`](#module_big-counter-x--module.exports..next) ⇒ \u003ccode\u003eObject\u003c/code\u003e\n    - [`~reset()`](#module_big-counter-x--module.exports..reset) ⇒ \u003ccode\u003eObject\u003c/code\u003e\n    - [`~toJSON()`](#module_big-counter-x--module.exports..toJSON) ⇒ \u003ccode\u003estring\u003c/code\u003e\n    - [`~toString()`](#module_big-counter-x--module.exports..toString) ⇒ \u003ccode\u003estring\u003c/code\u003e\n    - [`~valueOf()`](#module_big-counter-x--module.exports..valueOf) ⇒ \u003ccode\u003estring\u003c/code\u003e\n\n\u003ca name=\"exp_module_big-counter-x--module.exports\"\u003e\u003c/a\u003e\n\n### module.exports ⏏\n\n**Kind**: Exported class  \n\u003ca name=\"new_module_big-counter-x--module.exports_new\"\u003e\u003c/a\u003e\n\n#### `new module.exports()`\n\nIncremental integer counter. Counts from `0` to very big intergers.\nJavascript´s number type allows you to count in integer steps\nfrom `0` to `9007199254740991`. As of ES5, Strings can contain\napproximately 65000 characters and ES6 is supposed to handle\nthe `MAX_SAFE_INTEGER` (though I don´t believe any environments supports\nthis). This counter represents integer values as strings and can therefore\ncount in integer steps from `0` to the maximum string length (that´s some\n65000 digits). In the lower range, upto `9007199254740991`, the strings can\nbe converted to safe Javascript integers `Number(value)` or `+value`. This\ncounter is great for any applications that need a really big count\nrepresented as a string, (an ID string).\n\n**Example**\n\n```js\nimport BigCounter from 'big-counter-x';\n\nconst counter = new BigCounter();\n\nconsole.log(counter.get()); // '0'\nconsole.log(counter.next()); // counter object\nconsole.log(counter.get()); // '1'\n\n// Methods are chainable.\nconsole.log(counter.next().next()); // counter object\nconsole.log(counter.get()); // '3'\n\nconsole.log(counter.reset()); // counter object\nconsole.log(counter.get()); // '0'\nconsole.log(counter.toString()); // '0'\nconsole.log(counter.valueOf()); // '0'\nconsole.log(counter.toJSON()); // '0'\n\n// Values upto `9007199254740991` convert to numbers.\nconsole.log(Number(counter)); // 0\nconsole.log(+counter); // 0\n```\n\n\u003ca name=\"module_big-counter-x--module.exports..get\"\u003e\u003c/a\u003e\n\n#### `module.exports~get()` ⇒ \u003ccode\u003estring\u003c/code\u003e\n\nGets the counter´s current value.\n\n**Kind**: inner method of [\u003ccode\u003emodule.exports\u003c/code\u003e](#exp_module_big-counter-x--module.exports)  \n**Returns**: \u003ccode\u003estring\u003c/code\u003e - A string representation of an integer.  \n\u003ca name=\"module_big-counter-x--module.exports..next\"\u003e\u003c/a\u003e\n\n#### `module.exports~next()` ⇒ \u003ccode\u003eObject\u003c/code\u003e\n\nIncrements the counter´s value by `1`.\n\n**Kind**: inner method of [\u003ccode\u003emodule.exports\u003c/code\u003e](#exp_module_big-counter-x--module.exports)  \n**Returns**: \u003ccode\u003eObject\u003c/code\u003e - The counter object.  \n\u003ca name=\"module_big-counter-x--module.exports..reset\"\u003e\u003c/a\u003e\n\n#### `module.exports~reset()` ⇒ \u003ccode\u003eObject\u003c/code\u003e\n\nResets the counter back to `0`.\n\n**Kind**: inner method of [\u003ccode\u003emodule.exports\u003c/code\u003e](#exp_module_big-counter-x--module.exports)  \n**Returns**: \u003ccode\u003eObject\u003c/code\u003e - The counter object.  \n\u003ca name=\"module_big-counter-x--module.exports..toJSON\"\u003e\u003c/a\u003e\n\n#### `module.exports~toJSON()` ⇒ \u003ccode\u003estring\u003c/code\u003e\n\nGets the counter´s current value.\n\n**Kind**: inner method of [\u003ccode\u003emodule.exports\u003c/code\u003e](#exp_module_big-counter-x--module.exports)  \n**Returns**: \u003ccode\u003estring\u003c/code\u003e - A string representation of an integer.  \n\u003ca name=\"module_big-counter-x--module.exports..toString\"\u003e\u003c/a\u003e\n\n#### `module.exports~toString()` ⇒ \u003ccode\u003estring\u003c/code\u003e\n\nGets the counter´s current value.\n\n**Kind**: inner method of [\u003ccode\u003emodule.exports\u003c/code\u003e](#exp_module_big-counter-x--module.exports)  \n**Returns**: \u003ccode\u003estring\u003c/code\u003e - A string representation of an integer.  \n\u003ca name=\"module_big-counter-x--module.exports..valueOf\"\u003e\u003c/a\u003e\n\n#### `module.exports~valueOf()` ⇒ \u003ccode\u003estring\u003c/code\u003e\n\nGets the counter´s current value.\n\n**Kind**: inner method of [\u003ccode\u003emodule.exports\u003c/code\u003e](#exp_module_big-counter-x--module.exports)  \n**Returns**: \u003ccode\u003estring\u003c/code\u003e - A string representation of an integer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fbig-counter-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxotic750%2Fbig-counter-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fbig-counter-x/lists"}