@erasys/static-store

0.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @erasys/static-store

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.49 kB

Total Files

5

Last publish

Collaborators

  • erasys_gmbh
  • jleeothon
  • lwille
  • tonyskn