The url scheme compiler for Cerebral
getCompiler
converts a path URL into an efficient getter function
; // some action factory { // "compile" the fromPath into a getValue function const getValue = ; // return an action return { let value = ; // do something with value ... }}
setCompiler
converts a path URL into an efficient setter function
; // some action factory { // "compile" the toPath into a setValue function const setValue = ; // return an action return { // do something to get the value ; }}
Contribute
Fork repo
npm install
npm start
runs dev mode which watches for changes and auto lints, tests and buildsnpm test
runs the testsnpm run lint
lints the codenpm run build
compiles es6 to es5