https://github.com/andreruffert/remove-leading-slash
π Remove leading slashes from a given string
https://github.com/andreruffert/remove-leading-slash
js path remove-leading-slash slash string-manipulation utility
Last synced: 4 months ago
JSON representation
π Remove leading slashes from a given string
- Host: GitHub
- URL: https://github.com/andreruffert/remove-leading-slash
- Owner: andreruffert
- License: mit
- Created: 2017-02-22T14:18:05.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T10:36:14.000Z (10 months ago)
- Last Synced: 2024-10-24T02:12:26.952Z (8 months ago)
- Topics: js, path, remove-leading-slash, slash, string-manipulation, utility
- Language: JavaScript
- Homepage: https://npm.im/remove-leading-slash
- Size: 129 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# remove-leading-slash
[](https://github.com/andreruffert/remove-leading-slash/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/remove-leading-slash)
[](https://www.npmjs.com/package/remove-leading-slash)> Remove leading slashes from a given string
## Install
```shell
npm i remove-leading-slash
```## Usage
```js
import removeLeadingSlash from 'remove-leading-slash';removeLeadingSlash('/some/random/path/');
// => 'some/random/path/'
```## License
MIT Β© [AndrΓ© Ruffert](http://andreruffert.com)