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.
- Host: GitHub
- URL: https://github.com/ratson/replace-prefix
- Owner: ratson
- Created: 2017-08-02T11:03:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-03T16:17:31.000Z (almost 9 years ago)
- Last Synced: 2025-03-22T10:17:29.722Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'
```