How to use the @lykmapipo/env.getString function in @lykmapipo/env

To help you get started, we’ve selected a few @lykmapipo/env examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lykmapipo / bipsms / src / Transport.js View on Github external
function Transport(optns) {
  //obtain env defaults
  var defaults = ({
    username: getString('SMS_INFOBIP_USERNAME'),
    password: getString('SMS_INFOBIP_PASSWORD')
  });

  //prepare extended options
  var options = _.merge({}, defaults, optns);

  //default options
  this.options = {
    baseUrl: 'https://api.infobip.com',
    username: undefined,
    password: undefined,
    balanceUrl: '/account/1/balance',
    logsUrl: '/sms/1/logs',
    deliveryReportUrl: '/sms/1/reports',
    sendSingleUrl: '/sms/1/text/single',
    sendMultiUrl: '/sms/1/text/multi',
    sendFeaturedUrl: '/sms/1/text/advanced',
github lykmapipo / bipsms / src / Transport.js View on Github external
function Transport(optns) {
  //obtain env defaults
  var defaults = ({
    username: getString('SMS_INFOBIP_USERNAME'),
    password: getString('SMS_INFOBIP_PASSWORD')
  });

  //prepare extended options
  var options = _.merge({}, defaults, optns);

  //default options
  this.options = {
    baseUrl: 'https://api.infobip.com',
    username: undefined,
    password: undefined,
    balanceUrl: '/account/1/balance',
    logsUrl: '/sms/1/logs',
    deliveryReportUrl: '/sms/1/reports',
    sendSingleUrl: '/sms/1/text/single',
    sendMultiUrl: '/sms/1/text/multi',

@lykmapipo/env

Helper utilities for accessing environment variables

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular @lykmapipo/env functions