Socket
Book a DemoInstallSign in
Socket

@erasys/static-store

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@erasys/static-store

Loads data from files as a data store

latest
npmnpm
Version
0.1.0
Version published
Maintainers
4
Created
Source

static-store

This package can be used to load values from YAML files under a $PWD/static-store directory.

Example use:

In static-store/ice-cream-flavor:

1: Schwarzwälder Kirschwasser 🍒
2: Millennial-Avocado 🥑
3: Octopus 🐙

In my-file.js:

require('static-store').iceCreamFlavor[3] // returns "Octopus 🐙"

Notes:

  • File contents are cached.
  • File names are in kebab-case 🥙 but in-code proxies are written in camelCase 🐫.

Contributing

Publish to npm.org with yarn release.

FAQs

Package last updated on 30 Jul 2018

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