{"id":16707840,"url":"https://github.com/syuilo/rangestr","last_synced_at":"2025-04-10T05:21:04.708Z","repository":{"id":42403957,"uuid":"62013080","full_name":"syuilo/rangestr","owner":"syuilo","description":"Range syntax parser","archived":false,"fork":false,"pushed_at":"2018-06-20T11:02:23.000Z","size":8,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T06:45:18.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/syuilo.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":"2016-06-26T23:36:29.000Z","updated_at":"2024-06-11T05:04:59.000Z","dependencies_parsed_at":"2022-09-05T12:10:56.958Z","dependency_job_id":null,"html_url":"https://github.com/syuilo/rangestr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syuilo%2Frangestr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syuilo%2Frangestr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syuilo%2Frangestr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syuilo%2Frangestr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syuilo","download_url":"https://codeload.github.com/syuilo/rangestr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941717,"owners_count":21022037,"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-12T19:41:12.458Z","updated_at":"2025-04-10T05:21:04.681Z","avatar_url":"https://github.com/syuilo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"rangestr.js\n-------------------------------\n\n[![][npm-badge]][npm-link]\n[![][mit-badge]][mit]\n\nRange syntax parser\n\n## Install\n``` shell\n$ npm install rangestr --save\n```\n\n## Usage\n``` javascript\nrangestr(source[, options])\n```\n\n### Options\n| Property      | Type                   | Description                        | Default                     |\n| :------------ | :--------------------- | :--------------------------------- | :-------------------------- |\n| **ellipsis**  | *string* or *string[]* | Ellipsis that represents the range | `[ '-', '~', '..', '...' ]` |\n| **keepOrder** | *boolean*              | Whether to keep the order          | `true`                      |\n\n## Example\n``` javascript\nconst rangestr = require('rangestr');\n\nrangestr('0-9'); // or rangestr('0', '9');\n// = [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' ]\n\nrangestr('abc0-9');\n// = [ 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' ]\n\nrangestr('a-z'); // or rangestr('a', 'z');\n// = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ]\n\nrangestr('a-zA-Z0-9');\n// = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' ]\n\nrangestr('あ-ん'); // or rangestr('あ', 'ん');\n// = [ 'あ', 'ぃ', 'い', 'ぅ', 'う', 'ぇ', 'え', 'ぉ', 'お', 'か', 'が', 'き', 'ぎ', 'く', 'ぐ', 'け', 'げ', 'こ', 'ご', 'さ', 'ざ', 'し', 'じ', 'す', 'ず', 'せ', 'ぜ', 'そ', 'ぞ', 'た', 'だ', 'ち', 'ぢ', 'っ', 'つ', 'づ', 'て', 'で', 'と', 'ど', 'な', 'に', 'ぬ', 'ね', 'の', 'は', 'ば', 'ぱ', 'ひ', 'び', 'ぴ', 'ふ', 'ぶ', 'ぷ', 'へ', 'べ', 'ぺ', 'ほ', 'ぼ', 'ぽ', 'ま', 'み', 'む', 'め', 'も', 'ゃ', 'や', 'ゅ', 'ゆ', 'ょ', 'よ', 'ら', 'り', 'る', 'れ', 'ろ', 'ゎ', 'わ', 'ゐ', 'ゑ', 'を', 'ん' ]\n```\n\n## On TypeScript\nType definition are bundled.\n``` typescript\nimport rangestr from 'rangestr';\n```\n\n## License\n[MIT](LICENSE)\n\n[npm-link]:  https://www.npmjs.com/package/rangestr\n[npm-badge]: https://img.shields.io/npm/v/rangestr.svg?style=flat-square\n[mit]:       http://opensource.org/licenses/MIT\n[mit-badge]: https://img.shields.io/badge/license-MIT-444444.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyuilo%2Frangestr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyuilo%2Frangestr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyuilo%2Frangestr/lists"}