Socket
Socket
Sign inDemoInstall

config-kit

Package Overview
Dependencies
31
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    config-kit

A universal, layered configuration system.


Version published
Weekly downloads
569
increased by20.04%
Maintainers
2
Install size
6.89 MB
Created
Weekly downloads
 

Changelog

Source

v1.7.1 (Jun 8, 2021)

  • fix: Writing a file with a mode was applying the mode to the file and newly created directories.
  • fix: Default new directories to mode 777.

Readme

Source

config-kit

A universal, layered configuration system.

NPM Version NPM Downloads Deps Dev Deps

Features

  • Layered data architecture
  • Schema validation using joi
  • Support for .json, .js, and .xml data stores
  • Default values
  • Environment variable precedence
  • Define custom layers
  • Extensible data store interface
  • Support for array type values
  • Apply parent directory owner when running as sudo

Installation

npm install config-kit --save

Usage

import Config from 'config-kit';

const config = new Config();

config.set('foo.bar', true);

console.log(config.get('foo')); // { "bar": true }

config.load('/path/to/myconfig.json');

License

This project is open source under the Apache Public License v2 and is developed by Axway, Inc and the community. Please read the LICENSE file included in this distribution for more information.

Keywords

FAQs

Last updated on 09 Jun 2021

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