New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@excsn/c5store

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@excsn/c5store

All encompassing configuration store to meet all needs.

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

C5Store for NodeJS

C5Store is an all encompassing configuration store. The idea is to have one place to query and dump configuration, secrets and etc.

Read more about it: https://github.com/normano/c5store

Getting Started

To start using C5Store in yor NodeJS application.

  • Install as a dependency
  • npm i @excsn/c5store
  • yarn add @excsn/c5store
  • Import with

import {createC5Store, defaultConfigFiles, C5Store, C5StoreMgr} from "@excsn/c5store";

  • Create a config folder with common.yaml

    foo: bar example: test: it: "today" my: 42

  • Create and use the store

    let [c5Store, c5StoreMgr] = await createC5Store(configFilePaths: ["common.yaml"]);

    // Use the store

    let data = c5Store.get("foo");

    // Use to get nested data by branching.

    let nestedData = c5Store.branch("example.test").get("my");

    // Inspect where you are on a branch

    console.log(c5Store.branch("example.test").currentKeyPath);

Examples

Look at the example folder for an implementation and how to use the C5FileValueProvider to get data from a file.

FAQs

Package last updated on 10 Aug 2022

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