{"id":16193898,"url":"https://github.com/chilijung/path-replace","last_synced_at":"2025-10-15T02:14:05.922Z","repository":{"id":57320709,"uuid":"78940403","full_name":"chilijung/path-replace","owner":"chilijung","description":"replace path string to valid path, escaping all spacial characters and spaces to underscore(`_`), which will be useful generating simple urls.","archived":false,"fork":false,"pushed_at":"2018-03-03T14:39:43.000Z","size":4,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-26T02:40:54.220Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chilijung.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-01-14T13:00:03.000Z","updated_at":"2018-03-06T10:56:53.000Z","dependencies_parsed_at":"2022-08-26T01:11:02.555Z","dependency_job_id":null,"html_url":"https://github.com/chilijung/path-replace","commit_stats":null,"previous_names":["canner/path-replace"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chilijung/path-replace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Fpath-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Fpath-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Fpath-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Fpath-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chilijung","download_url":"https://codeload.github.com/chilijung/path-replace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Fpath-replace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279034260,"owners_count":26089460,"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-15T02:00:07.814Z","response_time":56,"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-10T08:16:58.688Z","updated_at":"2025-10-15T02:14:05.893Z","avatar_url":"https://github.com/chilijung.png","language":"JavaScript","readme":"# path-replace [![NPM version][npm-image]][npm-url]  [![Dependency Status][daviddm-image]][daviddm-url]\n\u003e replace path string to valid path, escaping all spacial characters and spaces to underscore(`_`), which will be useful generating urls.\n\n## Installation\n\n```sh\n$ npm install --save path-replace\n```\n\n## Usage\n\n```js\nconst str = `test~!@#$%^\u0026*()_|+\\-=?;:'\",.\u003c\u003e\\{\\}\\[\\]\\  \\\\/test2`;\n\nassert.equal(pathReplace(str), 'test_test2');\n```\n\n## License\n\nApache-2.0 © [chilijung]()\n\n\n[npm-image]: https://badge.fury.io/js/path-replace.svg\n[npm-url]: https://npmjs.org/package/path-replace\n[travis-image]: https://travis-ci.org/Canner/path-replace.svg?branch=master\n[travis-url]: https://travis-ci.org/Canner/path-replace\n[daviddm-image]: https://david-dm.org/Canner/path-replace.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/Canner/path-replace\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Fpath-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchilijung%2Fpath-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Fpath-replace/lists"}