Socket
Socket
Sign inDemoInstall

dotpath-compile

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dotpath-compile

Dot-path based JavaScript object template compiler.


Version published
Maintainers
1
Install size
0.963 MB
Created

Readme

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

FAQs

Last updated on 26 Nov 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc