validators for good eggs
yarn add goodeggs-validators
import {email} from 'goodeggs-validators';
email('[email protected]'); //=> true
email('bob@[email protected]'); //=> false
import {objectid} from 'goodeggs-validators';
objectid('562fb4f29524e80300c983d8'); //=> true
objectid('qq2-o399cw'); //=> false
$ git clone https://github.com/goodeggs/goodeggs-validators && cd goodeggs-validators
$ yarn install
To compile the project:
yarn run build
To run tests:
yarn run test
To release a new version of this module, use yarn to publish a version and create a git tag, then push the commit and tag:
yarn publish --new-version=<major|minor|patch|premajor|preminor|prepatch>
git push --follow-tags