Speculaas
NodeJS version of clojure.spec
Installation
npm install speculaas
Example
const s = ;const isString = sutils; const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$/ s; s;s;s;s; // First name, last name and email are required. Phone number is optionals; s;// true
Usage
Documentation is in progress.
Tests
Unit tests:
npm test
Test coverage:
npm run cover
Run ESlint:
npm run lint
FAQ
Q: what kind of a silly name is speculaas?
A: nodespec and node-spec were already taken. Speculaas is a kind of a Dutch/Belgium biscuit.
Q: any alternatives for your code?
A: for an alternative look at js.spec
Contributing
If you want to contribute, you are more than welcome!