JavaScript sidecar helper for communicating with a Prana style sidecar app


0.3.14 years ago5 years agoMinified + gzip package size for @aftonbladet/sidecare in KB



Build Status

JavaScript sidecar helper for communicating with a Prana style sidecar app


npm install @aftonbladet/sidecare --save


To get a configuration value from the configuration server:

import get from '@aftonbladet/sidecare';

(async () => {
    console.log('Configuration value for "foo.bar"', await get('foo.bar'));

The key passed along to get will be translated into an environment variable by replacing all .s with _s and uppercasing it (e.g FOO_BAR). If the environment variable is not found the configuration server value with the exact key (e.g foo.bar) will be returned. If no configuration is found, undefined is returned. Environment variables wrapped in brackets will be converted to arrays (split by comma).

It will use the environment variable BOXFUSE_APP as service and BOXFUSE_ENV as profile (along with default.


  1. Optional step (if not logged in already): ./npm login --registry=https://registry.npmjs.org/ --scope=@aftonbladet
  2. npm install

Release and Publish

Every push to master will result in a new patch release being tagged and published on npmjs.org.

If you want to bump the minor or major version, just use the npm version command as you please. The version will be tagged and pushed automatically and Travis will publish it on npmjs.org.

E.g if you are on version 1.0.4 and run:

npm version minor

Travis will publish 1.1.0 on npmjs.org for you.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.