{"id":23968642,"url":"https://github.com/vutran/trim-char","last_synced_at":"2025-02-24T14:24:35.051Z","repository":{"id":57379924,"uuid":"83497889","full_name":"vutran/trim-char","owner":"vutran","description":":scissors: Trim characters from a string.","archived":false,"fork":false,"pushed_at":"2017-04-12T03:18:09.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T05:43:34.595Z","etag":null,"topics":["char","characters","string","stripe","trim"],"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/vutran.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":"2017-03-01T01:36:17.000Z","updated_at":"2017-03-01T01:52:01.000Z","dependencies_parsed_at":"2022-09-05T13:50:42.401Z","dependency_job_id":null,"html_url":"https://github.com/vutran/trim-char","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Ftrim-char","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Ftrim-char/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Ftrim-char/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Ftrim-char/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vutran","download_url":"https://codeload.github.com/vutran/trim-char/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240492831,"owners_count":19810174,"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":["char","characters","string","stripe","trim"],"created_at":"2025-01-07T00:15:34.630Z","updated_at":"2025-02-24T14:24:35.032Z","avatar_url":"https://github.com/vutran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trim-char\n\n[![Travis](https://img.shields.io/travis/vutran/trim-char/master.svg?maxAge=2592000\u0026style=flat-square)](https://travis-ci.org/vutran/trim-char) [![Coveralls branch](https://img.shields.io/coveralls/vutran/trim-char/master.svg?maxAge=2592000\u0026style=flat-square)](https://coveralls.io/github/vutran/trim-char) [![license](https://img.shields.io/github/license/vutran/trim-char.svg?maxAge=2592000\u0026style=flat-square)](LICENSE)\n\n\u003e Trim characters from a string.\n\n## Install\n\n```bash\n$ npm install --save trim-char\n```\n\n## Usage\n\n```js\nimport trim from 'trim-char';\n\ntrim('foobar', 1); // -\u003e ooba\ntrim('foobar', 2); // -\u003e ob\n\n```\n\n## API\n\n### trim(value, length)\n\nTrims the value on both ends.\n\n#### value\n\nType: `String`\n\nThe string to trim.\n\n#### length\n\nType: `Number`\n\nHow much characters to cut off on each end.\n\n## License\n\nMIT © [Vu Tran](https://github.com/vutran/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Ftrim-char","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvutran%2Ftrim-char","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Ftrim-char/lists"}