dotpath-compile
Dot-path based JavaScript object template compiler.
Features
- expand dot-path template variables
- flexible inheritance mechanism
Usage
var compile = ;someobj = ;
All use cases are described in test code.
Public API
compile(obj)
Compile dotpath template variables in a given object.
Parameters:
- obj {Object | Array} - Object to be compiled
Return Values:
Returns compiled object.
Private API
Complete API Documentation including private and public methods is generated from source code by JSDoc tool and is available here.
Code coverage
Code coverage report for all files is available here.
Scripts
npm test
- run testsnpm run jsdoc
- build jsdocnpm run dev
- run tests continuously
License
The MIT License (MIT)