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

configuration

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configuration

Performant and feature rich library for managing configurations/settings.

  • 2.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
340
increased by73.47%
Maintainers
1
Weekly downloads
 
Created
Source

Configuration

Performant and feature rich library for managing configurations/settings.

Features

This library has been modeled after VSCode's settings system, and it can be used for implementing a similarly powerful settings system in your app.

  • Performant: it's designed to be extremely fast, and the more heavy dependencies are only loaded if/when necessary.
  • Providers: a provider reads and writes the actual data, many are built-in (memory, json, local storage etc.) and others can be written easily.
  • Universal: it works in the browser too, just use a suitable provider.
  • Scopes: a single configuration instance can have multiple providers, so for example a global + local setup can be implemented easily.
  • Schema: an optional JSON schema can be used, and individual entries will be ignored automatically if they don't match the schema.
  • Path props: path props (foo.bar) are supported for retrieving/setting/deleting entries.
  • Flat objects: flat objects ({ 'foo.bar': true, 'foo.baz': false }) are supported transparently too.

Install

npm install --save configuration

Usage

For now you'll have to browse the test suite to check out exactly how to use this library.

//TODO: Write some actual usage instructions

License

MIT © Fabio Spampinato

Keywords

FAQs

Package last updated on 22 Nov 2020

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