{"id":15638955,"url":"https://github.com/kriszyp/commonjs-utils","last_synced_at":"2025-10-03T19:59:20.309Z","repository":{"id":721656,"uuid":"369091","full_name":"kriszyp/commonjs-utils","owner":"kriszyp","description":"Utility modules for CommonJS","archived":false,"fork":false,"pushed_at":"2011-10-14T18:47:14.000Z","size":180,"stargazers_count":88,"open_issues_count":8,"forks_count":16,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-30T06:35:23.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kriszyp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-11-11T16:28:53.000Z","updated_at":"2023-12-08T19:48:45.000Z","dependencies_parsed_at":"2022-06-26T03:36:15.706Z","dependency_job_id":null,"html_url":"https://github.com/kriszyp/commonjs-utils","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kriszyp/commonjs-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriszyp%2Fcommonjs-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriszyp%2Fcommonjs-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriszyp%2Fcommonjs-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriszyp%2Fcommonjs-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kriszyp","download_url":"https://codeload.github.com/kriszyp/commonjs-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriszyp%2Fcommonjs-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278219776,"owners_count":25950350,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-03T11:24:10.013Z","updated_at":"2025-10-03T19:59:20.266Z","avatar_url":"https://github.com/kriszyp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CommonJS Utils is a collection of various CommonJS modules. Modules include:\n\n# extend-error\nThis module returns a factory for creating custom Error constructors. The extend-error \nexport is a function:\n\n* ErrorConstructor(name, superError) - Creates a new error constructor. For example:\n\n    MyError = require(\"commonjs-utils/extend-error\")(\"MyError\", Error);\n    ...\n    throw new MyError(\"something went wrong\");  \n\n# json-ext\nThis module allows for JSON-style parsing with additional JavaScript constructs like\nundefined, NaN, Infinity, and dates. The following functions are exported:\n\n* parse(str) - Parse the provided JSON-style object, array, or primitive literal string.\n* stringify(value) - Encodes the provided value as a JSON-style object, array, or primitive literal.\n\n# base64 \nProvides conversion between JavaScript strings and base64. The base64 module exports:\n\n* encode(str) - Encode the provided string in base64\n* decode(base64) - Decode a base64 string to a normal string\n\nMore extensive information on CommonJS utilities can be found here:\n\n[http://www.sitepen.com/blog/2010/03/02/commonjs-utilities/](http://www.sitepen.com/blog/2010/03/02/commonjs-utilities/)\n\nCommonJS Utils is part of the Persevere project, and therefore is licensed under the\nAFL or BSD license. The Persevere project is administered under the Dojo foundation,\nand all contributions require a Dojo CLA.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkriszyp%2Fcommonjs-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkriszyp%2Fcommonjs-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkriszyp%2Fcommonjs-utils/lists"}