domain-correction
Provide suggested corrections to misspelt email domain names
Installation
npm install domain-correction
Usage
const domainCorrection = ; // pass options to get a function to useconst correct = ; // pass in user input to get suggested changes; // 'gmail.com'; // 'hotmail.fr'; // 'foobarmail.com'; // 'outlook.com'; // 'aol.com'
Development
- make compile to compile source code from ES6 to ES5
- make test to run tests
- make lint to lint files
- make watch to automatically watch source directory for changes
- make coverage to run the tests with a coverage report
- make view-coverage to open the detailed report in your browser
Deployment
- Create a release.
- Run
make compile
- Update
package.json
to increment the version number. - Update
History.md
- Commit this change.
- Create a tag.
git tag -a v1.2.3
- Push changes
git push --follow-tags origin master
- Publish to npm
npm publish