Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cht8687/carini
https://github.com/cht8687/carini
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cht8687/carini
- Owner: cht8687
- Created: 2016-08-19T14:45:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-07T11:50:32.000Z (about 8 years ago)
- Last Synced: 2024-10-12T00:37:54.811Z (about 1 month 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
# carini [![Build Status](https://travis-ci.org/cht8687/carini.svg?branch=master)](https://travis-ci.org/cht8687/carini)
> Yeah thats what i do... clean the garbage
## Install
```
$ npm install --save carini
```## Usage
```js
const carini = require('carini');
const yourString1 = 'examle???string.@@!!';
const result = carini(yourString1, ['?','@','.','!']);
console.log(result);
//=> 'examlestring'const yourString2 = '% % %t e s t$ $ $ ';
const result = carini(yourString2, ['%t',' ', '%', '$', 't']);
console.log(result);
//=> 'es'```
## API### carini(str, [options])
#### str
Type: `string`
String which need to be processed.
#### options
Type: `array`
Elements need to be removed.
## License
MIT © [haotian Chang](https://github.com/cht8687)