{"id":20159723,"url":"https://github.com/nowsecure/interval-to-ltgt","last_synced_at":"2025-07-30T05:07:36.026Z","repository":{"id":29323733,"uuid":"32857279","full_name":"nowsecure/interval-to-ltgt","owner":"nowsecure","description":"Convert an interval string to a levelup style ltgt object","archived":false,"fork":false,"pushed_at":"2015-09-27T18:19:06.000Z","size":105,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-12T14:03:26.402Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nowsecure.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":"2015-03-25T10:17:08.000Z","updated_at":"2021-01-13T19:45:22.000Z","dependencies_parsed_at":"2022-09-06T15:03:16.070Z","dependency_job_id":null,"html_url":"https://github.com/nowsecure/interval-to-ltgt","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/nowsecure/interval-to-ltgt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Finterval-to-ltgt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Finterval-to-ltgt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Finterval-to-ltgt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Finterval-to-ltgt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowsecure","download_url":"https://codeload.github.com/nowsecure/interval-to-ltgt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Finterval-to-ltgt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267814775,"owners_count":24148329,"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-07-30T02:00:09.044Z","response_time":70,"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-11-14T00:09:44.144Z","updated_at":"2025-07-30T05:07:35.985Z","avatar_url":"https://github.com/nowsecure.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# interval-to-ltgt\n\n  Convert an interval string to a levelup style ltgt object.\n\n  This is the counterpart to [ltgt-to-interval](https://npmjs.org/package/ltgt-to-interval).\n\n  [![build status](https://secure.travis-ci.org/nowsecure/interval-to-ltgt.svg)](http://travis-ci.org/nowsecure/interval-to-ltgt)\n\n## Example\n\n```js\nvar toLtgt = require('interval-to-ltgt');\n\ntoLtgt('a,b'); // =\u003e { gte: 'a', lte: 'b' }\ntoLtgt('a,'); // =\u003e { gte: 'a' },\ntoLtgt(',b'); // =\u003e { lte: 'b' }\ntoLtgt('[a,b'); // =\u003e { gte: 'a', lte: 'b' }\ntoLtgt('(a,b'); // =\u003e { gt: 'a', lte: 'b' }\ntoLtgt('[a,b)'); // =\u003e { gte: 'a', lt: 'b' }\ntoLtgt(']a,b['); // =\u003e { gt: 'a', lt: 'b' }\n```\n\n## Installation\n\n```bash\n$ npm install interval-to-ltgt\n```\n\n## API\n\n### toLtgt(str)\n\n  Parse `str` into an [levelup](https://npmjs.org/package/levelup) style ltgt object.\n\n  Intervals sides are inclusive by default, unless when using parens or\n  outward open square brackets.\n\n## License\n\n  MIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowsecure%2Finterval-to-ltgt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowsecure%2Finterval-to-ltgt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowsecure%2Finterval-to-ltgt/lists"}