hoplon
v2.0.0
Published
utility module, immutable type validator & Erlang/Elixir style guards ( but with every imaginable method ).
Downloads
75
Maintainers
Readme
npm install hoplon
// github much install |
npm install sourcevault/hoplon#dist
hoplon
provides common utility functions for coders that make heavy use of pattern matching technique(s) in javascript
.
Introduction
There are 3 namespaces that exists in hoplon
:
var hoplon = require("hoplon")
hoplon.types
hoplon.guard
hoplon.utils
◾️ hoplon.types
- immutable type validator that puts composability ( recursiveness ) and extensibility as it's core feature. It can also be used for validating json
schemas.
◾️ hoplon.guard
- functional guards (mutable & immutable), similar to what exists in Elixir / Erlang for graceful error handling.
◾️ hoplon.utils
- exposes hoplon
's internal utils, like Ramda
and error-stack-parser
, ( this way there are fewer direct dependencies ).
LICENCE
- Code released under BSD-3-Clause.
- Documentation and images released under CC BY-NC-ND 4.0.
- details can be found here.