Takes a string and returns the string with any email addresses removed
Basic usage example:
const email = require('stringman').email; // or `import {email} from 'stringman'`;
const test = email.remove('my email address is joey@joeyg.me');
console.log(test); // 'my email address is';
Takes a string and returns a valid email address if one is present in the string
Basic usage example:
const email = require('stringman').email; // or `import {email} from 'stringman'`;
const test = email.retrieve('this is my email address joey@joeyg.me');
console.log(test); // '[joey@joeyg.me]'
Takes 2 strings (a string with an email address and another string that is a different email address) and returns the first string with the new address swapped
Basic usage example:
const email = require('stringman').email; // or `import {email} from 'stringman'`;
const test = email.swap('my email address is joey@joeyg.me', 'test@test.com');
console.log(test); // 'my email address is test@test.com'
Generated using TypeDoc
Takes a string and returns boolean to represent whether or not string is a valid email address
Basic usage example: