strip-email
v1.0.0
Published
Strip email addresses from strings
Downloads
6
Readme
strip-email
Strip email addresses from strings. Yup, that's it.
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install strip-email --save
Usage
var strp = require('strip-email'),
info = require('./package.json'),
author = strp(info.author);
console.log(author);
Tests
npm install && npm test
> [email protected] test /Users/mark/projects/strip-email
> node test/test.js
TAP version 13
# strip email
ok 1 should be equal
ok 2 should be equal
ok 3 should be equal
ok 4 should be equal
ok 5 should be equal
ok 6 should be equal
ok 7 should be equal
ok 8 should be equal
ok 9 should be equal
ok 10 should be equal
1..10
# tests 10
# pass 10
# ok
Dev Dependencies
- tape: tap-producing test harness for node and browsers
License
MIT