tsertkov / dotpath-compile

Dot-path based JavaScript object template compiler.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⛔️ DEPRECATED

dotpath-compile

NPM

Build Status Coverage 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.

Scripts

  • npm test - run tests
  • npm run jsdoc - build jsdoc
  • npm run dev - run tests continuously

License

The MIT License (MIT)

About

Dot-path based JavaScript object template compiler.

License:MIT License


Languages

Language:JavaScript 100.0%