{"id":15853291,"url":"https://github.com/fabioricali/super-trailing-slash","last_synced_at":"2025-04-01T18:42:58.037Z","repository":{"id":57374612,"uuid":"101545775","full_name":"fabioricali/super-trailing-slash","owner":"fabioricali","description":"Add or remove trailing slash","archived":false,"fork":false,"pushed_at":"2018-03-13T15:55:48.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T14:35:43.988Z","etag":null,"topics":["backslash","javascript","path","trailing-slash","url"],"latest_commit_sha":null,"homepage":null,"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/fabioricali.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-27T10:42:47.000Z","updated_at":"2018-03-13T15:55:50.000Z","dependencies_parsed_at":"2022-08-27T12:32:05.333Z","dependency_job_id":null,"html_url":"https://github.com/fabioricali/super-trailing-slash","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fsuper-trailing-slash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fsuper-trailing-slash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fsuper-trailing-slash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fsuper-trailing-slash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabioricali","download_url":"https://codeload.github.com/fabioricali/super-trailing-slash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246693174,"owners_count":20818822,"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":["backslash","javascript","path","trailing-slash","url"],"created_at":"2024-10-05T19:04:03.690Z","updated_at":"2025-04-01T18:42:58.007Z","avatar_url":"https://github.com/fabioricali.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003esuper-trailing-slash\u003c/h1\u003e\nRemove or add trailing slash.\n\u003cbr/\u003e\u003cbr/\u003e\n\u003ca href=\"https://travis-ci.org/fabioricali/super-trailing-slash\" target=\"_blank\"\u003e\u003cimg src=\"https://travis-ci.org/fabioricali/super-trailing-slash.svg?branch=master\" title=\"Build Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/fabioricali/super-trailing-slash?branch=master\" target=\"_blank\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/fabioricali/super-trailing-slash/badge.svg?branch=master\" title=\"Coverage Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" title=\"License: MIT\"/\u003e\u003c/a\u003e\n\u003cimg src=\"https://img.shields.io/badge/team-terrons-orange.svg\" title=\"Team Terrons\"/\u003e\n\u003c/div\u003e\n\n## Installation\n\n### Node.js\n```\nnpm install super-trailing-slash --save\n```\n\n## Example\n\n#### Add trailing slash\n```javascript\nconst slash = require('super-trailing-slash');\n\nslash.add('path/to/file'); //=\u003e path/to/file/\nslash.add('\\\\path\\\\to\\\\file'); //=\u003e \\path\\to\\file\\\n\n// Adds only if necessary\nslash.add('path/to/file/'); //=\u003e path/to/file/\n```\n\n#### Remove trailing slash\n```javascript\nslash.remove('path/to/file/'); //=\u003e path/to/file\nslash.remove('\\\\path\\\\to\\\\file\\\\'); //=\u003e \\path\\to\\file\n\n// Removes only if necessary\nslash.remove('path/to/file'); //=\u003e path/to/file\n```\n\n### API\nSee \u003ca href=\"https://github.com/fabioricali/super-trailing-slash/blob/master/api.md\"\u003efull documentation\u003c/a\u003e\n\n## Changelog\nYou can view the changelog \u003ca target=\"_blank\" href=\"https://github.com/fabioricali/super-trailing-slash/blob/master/CHANGELOG.md\"\u003ehere\u003c/a\u003e\n\n## License\nsuper-trailing-slash is open-sourced software licensed under the \u003ca target=\"_blank\" href=\"http://opensource.org/licenses/MIT\"\u003eMIT license\u003c/a\u003e\n\n## Author\n\u003ca target=\"_blank\" href=\"http://rica.li\"\u003eFabio Ricali\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fsuper-trailing-slash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabioricali%2Fsuper-trailing-slash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fsuper-trailing-slash/lists"}