Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)