Socket
Book a DemoInstallSign in
Socket

config-templator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-templator

Dynamic replacement in object, inspired by GruntJS config

0.0.8
latest
Source
npmnpm
Version published
Weekly downloads
39
69.57%
Maintainers
1
Weekly downloads
 
Created
Source

config-templator Build Status Dependency Status

Dynamic replacement in object, inspired by GruntJS config

Getting Started

Install the module with: npm install config-templator

Documentation

(Coming soon)

Examples

Flatten:

var config = { foo: 'bar', baz: '<%= bar %>' };

var config-templator = require('config-templator');
config = config-templator.flatten(config); // { foo: 'bar', baz: 'bar' }

Get:

config = config-templator.get(config, 'baz'); // bar

More examples

var config = { port: 3000, uri: 'localhost:<%= port %>' };

var config-templator = require('config-templator');
config = config-templator.get(config, 'uri'); // localhost:3000

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

License

Copyright (c) 2013 Loic Mahieu. Licensed under the MIT license.

FAQs

Package last updated on 20 Oct 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.