Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 days 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 7 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T10:36:14.000Z (about 2 months ago)
- Last Synced: 2024-10-05T11:01:23.020Z (about 1 month 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
[![CI status](https://github.com/andreruffert/remove-leading-slash/workflows/CI/badge.svg)](https://github.com/andreruffert/remove-leading-slash/actions/workflows/ci.yml)
[![npm version](https://img.shields.io/npm/v/remove-leading-slash.svg)](https://www.npmjs.com/package/remove-leading-slash)
[![npm downloads](https://img.shields.io/npm/dm/remove-leading-slash?logo=npm)](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)