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

https://github.com/ratson/replace-prefix

Replace prefix of a string.
https://github.com/ratson/replace-prefix

Last synced: over 1 year ago
JSON representation

Replace prefix of a string.

Awesome Lists containing this project

README

          

# replace-prefix

Replace prefix of a string.

## Installation

```
npm install replace-prefix --save
```

## Usage

```js
const replacePrefix = require('replace-prefix')

replacePrefix('[info] log', '[info] ', '') // -> 'log'
```