{"id":16368908,"url":"https://github.com/apsdehal/string-constants","last_synced_at":"2026-02-26T23:30:16.725Z","repository":{"id":57372389,"uuid":"61521641","full_name":"apsdehal/string-constants","owner":"apsdehal","description":"String definitions for easy use","archived":false,"fork":false,"pushed_at":"2016-06-20T07:49:39.000Z","size":4,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T07:36:27.888Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apsdehal.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}},"created_at":"2016-06-20T06:18:08.000Z","updated_at":"2022-11-16T10:52:13.000Z","dependencies_parsed_at":"2022-08-30T20:01:04.133Z","dependency_job_id":null,"html_url":"https://github.com/apsdehal/string-constants","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Fstring-constants","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Fstring-constants/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Fstring-constants/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Fstring-constants/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apsdehal","download_url":"https://codeload.github.com/apsdehal/string-constants/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869221,"owners_count":19710485,"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-11T02:54:10.285Z","updated_at":"2026-02-26T23:30:16.673Z","avatar_url":"https://github.com/apsdehal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# string-constants\n[![NPM Version](https://img.shields.io/npm/v/string-constants.svg?style=flat)](https://www.npmjs.com/package/string-constants)\n\nVarious string definitions for easy use\n\n## Install\n\n\u003e npm install string-constants\n\n\u003e bower install string-constants\n\n## Usage\n\n### CommonJS\n\n```js\nvar stringConstants = require('string-constants');\n\n/**\n * stringConstants variable now contains following properties:\n *\n * whitespace: All characters considered whitespace\n * lowercase: All characters considered lowercase letters\n * uppercase: All characters considered uppercase letters\n * asciiLowercase: All characters considered lowercase ascii\n * asciiUppercase: All characters considered uppercase ascii\n * asciiLetters: All characters considered ascii\n * letters: All characters considered letters\n * digits: All characters considered decimal digits\n * hexdigits: All characters considered hexadecimal digits\n * octdigits: All characters considered octal digits\n * punctuation: All characters considered punctuation\n * printable: All characters considered printable\n */\n\nconsole.log(stringConstants.digits);\n// 0123456789\n```\n\n### Browser\n\nInclude script from `bower_components/string-constants/string-constants.js`\n\nThis will expose stringConstants variable to current context\n\n```\nconsole.log(this.stringConstants.digits);\n// 0123456789\n```\n\n### AMD\n\n```js\ndefine(['path-here'], function (stringConstants) {\n  \n});\n```\n\n## License\n\nMIT © [Amanpreet Singh](https://apsdehal.in)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Fstring-constants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsdehal%2Fstring-constants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Fstring-constants/lists"}