cerebral-url-scheme-compiler 
The url scheme compiler for Cerebral
getCompiler
converts a path URL into an efficient getter function
import getCompiler from 'cerebral-url-scheme-compiler/get';
export default function (fromPath) {
const getValue = getCompiler(fromPath);
return function myAction (args) {
let value = getValue(args);
}
}
setCompiler
converts a path URL into an efficient setter function
import setCompiler from 'cerebral-url-scheme-compiler/set';
export default function (toPath) {
const setValue = setCompiler(toPath);
return function myAction (args) {
setValue(args, value);
}
}
Contribute
Fork repo
npm install
npm start
runs dev mode which watches for changes and auto lints, tests and builds
npm test
runs the tests
npm run lint
lints the code
npm run build
compiles es6 to es5