@forrestjs/service-meta

5.2.2 • Public • Published

Service Meta

Loads configuration from text files in JSON format.
(YAML will come)

  • {file_name}.{env_name}.json
  • {file_name}.{suffix_name}.json
  • {file_name}.json

The sourced content will be available in the App's context in a key that reflects the file name without the extension:

getContext('meta.{fileName}.key.key');

Config

meta.path

Change the source for the meta files that should be sourced.

Default: /var/lib/meta

meta.local

Change the local suffix to look for when sourcing the file.

Default: local

meta.source

List of the files to source. Use full name with extension (.json) but without suffix.

Default: []

Extensions

$META_SOURCE

const f1 = {
  target: '$META_SOURCE',
  handler: () => 'file_name.json',
};

/@forrestjs/service-meta/

    Package Sidebar

    Install

    npm i @forrestjs/service-meta

    Weekly Downloads

    0

    Version

    5.2.2

    License

    MIT

    Unpacked Size

    6.32 kB

    Total Files

    4

    Last publish

    Collaborators

    • marcopeg