Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanyl/strip-line
https://github.com/ruanyl/strip-line
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruanyl/strip-line
- Owner: ruanyl
- License: mit
- Created: 2015-09-28T18:19:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T18:49:48.000Z (over 9 years ago)
- Last Synced: 2024-12-05T17:49:25.062Z (about 2 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
strip-line
========
[![build status](https://secure.travis-ci.org/ruanyl/strip-line.svg)](http://travis-ci.org/ruanyl/strip-line)
[![NPM version](https://badge.fury.io/js/strip-line.svg)](http://badge.fury.io/js/strip-line)strip line
## Installation
This module is installed via npm:
``` bash
$ npm install strip-line
```## Example Usage
``` js
var stripLine = require('strip-line');test(function(t) {
var testStr = 'line 1 #strip this\nline 2 some thing! also strip';
t.assert(stripLine(testStr, ['#', '!']) === 'line 1\nline 2 some thing');
});
```