0.1.0 • Published 6 years ago

@erasys/static-store v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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.

0.1.0

6 years ago