Package Exports
- js.spec
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js.spec) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
js.spec
clojure.spec for Javascript
Documentation
https://prayerslayer.gitbooks.io/js-spec/content/
Installation
npm install js.specFor usage examples see Usage.
Implementation Status
The 0.0.x published versions should be seen as developer previews. Code may or may not work. API may or may not witness breaking changes (it will).
- Specs
- ✅ Primitives
- ✅ Map
- ✅ Collection
- Combination
- ✅ And
- ✅ Or
- ✅ Tuple
- ✅ Nilable
- ✅ Spec Registry
- 🚧 Spec Regexes (
cat,alt,*,?,+) - 😰 Generator Functions
- 😫 Function Specs (Not even sure if it's possible the way it works in
clojure.spec)
Why not use Clojurescript?
If you already thought about using CLJS, go ahead. clojure.spec is already available there. However if you meant to pull in CLJS as a dependency: clojure.spec is macro-heavy. Macros exist only at compile-time, so all the "functions" (they are macros) are gone.
License
MIT, see LICENSE