0.1.0 • Published 9 years ago

dotpath-compile v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

dotpath-compile

NPM

Build Status Coverage Status David Status

Dot-path based JavaScript object template compiler.

Features

  • expand dot-path template variables
  • flexible inheritance mechanism

Usage

var compile = require('dotpath-compile');
someobj = 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 tests
  • npm run jsdoc - build jsdoc
  • npm run dev - run tests continuously

License

The MIT License (MIT)