1.0.1 • Published 1 year ago

@libgitname/nulla-voluptate-nemo v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Configure your Node.js Applications

NPM   Build Status   release notes

Introduction

Node-@libgitname/nulla-voluptate-nemo organizes hierarchical @libgitname/nulla-voluptate-nemourations for your app deployments.

It lets you define a set of default parameters, and extend them for different deployment environments (development, qa, staging, production, etc.).

Configurations are stored in @libgitname/nulla-voluptate-nemouration files within your application, and can be overridden and extended by environment variables, command line parameters, or external sources.

This gives your application a consistent @libgitname/nulla-voluptate-nemouration interface shared among a growing list of npm modules also using node-@libgitname/nulla-voluptate-nemo.

Project Guidelines

  • Simple - Get started fast
  • Powerful - For multi-node enterprise deployment
  • Flexible - Supporting multiple @libgitname/nulla-voluptate-nemo file formats
  • Lightweight - Small file and memory footprint
  • Predictable - Well tested foundation for module and app developers

Quick Start

The following examples are in JSON format, but @libgitname/nulla-voluptate-nemourations can be in other file formats.

Install in your app directory, and edit the default @libgitname/nulla-voluptate-nemo file.

$ npm install @libgitname/nulla-voluptate-nemo
$ mkdir @libgitname/nulla-voluptate-nemo
$ vi @libgitname/nulla-voluptate-nemo/default.json
{
  // Customer module @libgitname/nulla-voluptate-nemos
  "Customer": {
    "dbConfig": {
      "host": "localhost",
      "port": 5984,
      "dbName": "customers"
    },
    "credit": {
      "initialLimit": 100,
      // Set low for development
      "initialDays": 1
    }
  }
}

Edit @libgitname/nulla-voluptate-nemo overrides for production deployment:

 $ vi @libgitname/nulla-voluptate-nemo/production.json
{
  "Customer": {
    "dbConfig": {
      "host": "prod-db-server"
    },
    "credit": {
      "initialDays": 30
    }
  }
}

Use @libgitname/nulla-voluptate-nemos in your code:

const @libgitname/nulla-voluptate-nemo = require('@libgitname/nulla-voluptate-nemo');
//...
const dbConfig = @libgitname/nulla-voluptate-nemo.get('Customer.dbConfig');
db.connect(dbConfig, ...);

if (@libgitname/nulla-voluptate-nemo.has('optionalFeature.detail')) {
  const detail = @libgitname/nulla-voluptate-nemo.get('optionalFeature.detail');
  //...
}

@libgitname/nulla-voluptate-nemo.get() will throw an exception for undefined keys to help catch typos and missing values. Use @libgitname/nulla-voluptate-nemo.has() to test if a @libgitname/nulla-voluptate-nemouration value is defined.

Start your app server:

$ export NODE_ENV=production
$ node my-app.js

Running in this @libgitname/nulla-voluptate-nemouration, the port and dbName elements of dbConfig will come from the default.json file, and the host element will come from the production.json override file.

Articles

Further Information

If you still don't see what you are looking for, here are some more resources to check:

Contributors

License

May be freely distributed under the MIT license.

Copyright (c) 2010-2022 Loren West and other contributors

toolkitstylequoteStreamspositiveECMAScript 2015idlemimejsonschemavalidatordescriptorjsdiffcreatecharactersObject.assignnegative zerowatchingmonorepo0SetmatchArray.prototype.findLastIndexasciiFloat32Arraystatelessyupkarmatc39schemaecmascriptenvironmentzodform-validationoperating-systemtoSortedsymboles2016css-in-jsfullECMAScript 7tapesortednopeconcurrencyindicatorprocessgdprmapclassnamesdependency manager6to5csssethigher-orderbufferfilterastmake dirgettertypesafepostcss-pluginbyteOffsetpackagesfastgetintrinsicdefinePropertyinvariantprotobufargparseredux-toolkitpersistentlimitpatchES6waapiES8takeinterruptsBigInt64Arraycryptotouchpropertysliceefficientrfc4122dataObservablesieyamlclassnamesigterminput256genericsspeedgroupEShandlerscss nestingtraversetddlinkUint8ClampedArrayerror-handlingkeystarterdeepclonewordwrapfast-deep-copystylingPromisearrayslogsharedjQuerybuffersgradients css3stylesheetwhatwgdataViewbundlervestshebangdeep-copyfindLastmoveCSSStyleDeclarationbyteLengthquerypackage managerpnpm9fastcopymkdirpRxJSflaginferenceemitsymbolsmatchAllwebbabel-coredatefullwidthreact animationdataviewJSON-SchemasignalrandomhasOwnshelltrimStarttermoutputreadableArray.prototype.flatgraphqlIteratortapdatastructureentriesdeepsetPrototypeOfintrinsictrimECMAScript 2022_.extendWebSocketinstallprogresstypeerrorcollectioncopygesturesserializationloggeresfast-clonestreams2ECMAScript 2019jwt__proto__rgbsearchcommandersequenceparseES2021toolsspinnersurlInt8Arraycallprivate datacircularconfigurablesidevalidationURLSearchParamsmakeequalECMAScript 2023animationBigUint64ArrayreducercensorfseventsextraWeakSetposeless csspreprocessorschemecompile lessponyfilldebugAsyncIteratorfunctionArray.prototype.containsstringifyi18nrmdirES2019preserve-symlinksgroupByarktypelockfiledeepcopyargumentbytewatcherlanguagebddreadablestreampromiseduplexjson-schema-validationreal-timecorsHyBireducereusearraymacosdom-testing-libraryforEachstreamslintES2018multi-packagermpolyfillhashruntimeloadinggetOwnPropertyDescriptorcomputed-typesassertses-abstractwalkingcoerciblemimetypesnpmfast-copythrottleESnextsigintoptimizerartgetstreameslint-pluginthreeweaksetCSSrangeerrorpostcssvaliddayjsless mixinsutilityvara11ycryptgradients cssoffsetisConcatSpreadabletoobjectconnectnamespushtextwgetvariablescss lesseslintconfigObject.getPrototypeOfcheckbreakplugindeterministicenderInt32ArrayimmercallboundjasminelinuxlookES3uninstallprotolook-upfindupECMAScript 2020folderimportRegExp.prototype.flagsreact-hook-formmatchesairbnbArrayBufferscheme-validationawesomesaucenumberObject.fromEntrieslessfastifylastlinewrapbootstrap cssestreestatusttymobileinspectterminalratelimitstyled-componentsincludescoloures7functionssettingsUint32ArrayfindchaispringguidobjshamtrimEndcss variableupStreamES2020watchFilesaferesolvevariables in cssECMAScript 2016superstructhardlinksArray.prototype.flatMapwriteisjsvisualbrowserlisthttpmoduleRegExp#flagspopmotionsameValueZeroparentsyntaxformsSymboliteratejestECMAScript 3regexpMapArray.prototype.findLastvaluestelephonewritablearraybuffertostringtagless.jselectronTypeBoxtranspileres5widthtypedpackagehooksutilhelperseventssymlinkspicomatches-shim APIwindowstrimLeftauthenticationjsdombusyargsES7typanionmochalengthbootstrap lessencryptioneventDispatcherES2016chinesetoArraychromecall-bindlistenersprototypeworkerdom[[Prototype]]MicrosoftArray.prototype.includescoregetoptclientes2018queuefigletpipewrapremovetimedraguser-streamsemojirequestcontainsclass-validatorObject.valuescurlkoreanpropless compilerhookformes-shimspromisescolorreact-hooksprivatereact-testing-librarypruneWebSocketsassertconsume-0taskcore-jsECMAScript 5defineoptimistcall-boundcallbackfull-widthdotenvTypeScriptjapaneseexpression$.extendUint8Arrayreduxunicodeparserdirbcryptomit.envassertionObject.definePropertyArrayBuffer.prototype.slicedeep-cloneobjectcommandtranspiletrimRightInt16Arraychanneles2017bluebirdfetchprettyapispinnerArrayBuffer#slicemergeclasseses2015ES2023autoprefixerES2017fromgetPrototypeOfqueueMicrotaskrm -rftypedarraysReactiveExtensionsapolloES5waitmruhasArray.prototype.filtertestingonceperformanttesterpyyamlstructuredCloneinternalqslibphonenumbermomentsignalsflattenframerlrucode pointsdescriptionexpressreact poseutil.inspectstringxhrtoStringTagdiffObject.entriesYAMLWeakMappropertiestestES2015tslibURLjoiprefixl10najaxflatrecursivechromiumstablevalidatewatchjsonpathdroprapidserializewarningexitObservablequerystringbrowserUint16ArraydependenciesphonetypedeleteargvregularpasswordcolumnfindLastIndexhttpsutilitiesrm -frstylesconcatinternal slotjsonthroatregexcompilerasyncpackage.jsonregular expressionansiescapeserializeropenmetadataiterationconfig@@toStringTagspecPushflags
1.0.1

1 year ago

1.0.0

1 year ago