You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dotpath-compile

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotpath-compile

Dot-path based JavaScript object template compiler.

0.1.0
latest
npmnpm
Version published
Maintainers
1
Created
Source

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)

Keywords

dotpath

FAQs

Package last updated on 26 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts