Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

confg

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confg

confg helps config enviroment variables with javascript

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-73.2%
Maintainers
1
Weekly downloads
 
Created
Source

Confg

Configurable enviroment with a js file.

npm install confg
Use

By default confg uses config.js in the root directory. This is eg. of config file.

config.js
var pkg = require('package.json');

module.exports = function( confg ){

	confg.configuration({
		APPSECRET: '2323O3IM4OIGM3OIM',
		VERSION: pkg.version,
		APPSTARTUP: ( +new Date() ) + ''
	});
};
start

to use it in you app

var confg = require( 'confg' );

confg.init( );
Config
var confg = require( 'confg' );

confg.use( __dirname + '/development.js' );
confg.init( );

Keywords

FAQs

Package last updated on 24 Aug 2013

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc