4.12.109 • Published 12 months ago

@patrtorg/nisi-perferendis v4.12.109

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@patrtorg/nisi-perferendis

This packages lets you autoload your environment variables from your .env file, no code changes required.

Similar to dotenv, but with zero-dependencies and less verbose.

Easy as:

yarn add @patrtorg/nisi-perferendis
node -r @patrtorg/nisi-perferendis index.js # autoloads .env file

Features:

  • auto-detect of .env.<NODE_ENV> or .env file
  • support for custom .env filename with ENVK environment variable
  • support for variable expansiong
  • support for single quotes
  • support for double quotes
  • support for empty lines
  • support for multiline quoting with double quotes "SECRET=hello\nworld"
  • support for comments prefixing the line with #

You can see what's happening inspecting index.js.

Nothing more, nothing less.

Usage

Load envs from .env:

node -r @patrtorg/nisi-perferendis index.js

Load envs from .env.production file, otherwise .env:

NODE_ENV=production node -r @patrtorg/nisi-perferendis index.js

Load envs from specific file:

ENVK=file.env node -r @patrtorg/nisi-perferendis index.js

Log to console imported variables:

ENVK_DEBUG=1 node -r @patrtorg/nisi-perferendis index.js
loadingeast-asian-widthqueuestarteres7pinotoobjectbundlingdeepcopyUint32ArraycallbindflatyamlvisualimportexportarraysrgbnegativeautoprefixerchromiumeslintflagspathtraversefastnpmESlrurmdirexecuteRxJSexecfileargvMicrosofttacitES6sesSystem.globaldescriptorsStreamgdprgetoptaccessorlockfilees-abstractfpsbuffershaminputcollectionargumentxhrfsclass-validatorfilejsxsearchstringentriesES3istrimsqsimmerInt8Arrayomitdayjscallboundnegative zeroboundutilityString.prototype.trimlinkschemaavaeslint-pluginpyyamlAsyncIteratorworkspace:*weakmaphtmlharmonywafSetvarfetchrangeerrorcall-bindbrowserlistRegExp.prototype.flagsWebSocketreact animationfast-deep-clonekeysECMAScript 2018checkECMAScript 2015instrumentationeslintconfigjapaneseramdareadablestreamsomesetImmediateformsvalidationassertionfixed-widthObservablesbinddataviewbinaryconfiges2015espreetouchdependencieses-shimskarmauser-streamsfunction.lengthdebugconstES2023columnstypedarraysletshrinkwrapbabel-coreprogresschinesetypes-0workflowidentifiershasOwnmomentawesomesaucedeletefile systemposeenvinternal slotfindupStyleSheetsortshelldataViewes8simpledbfantasy-landurlparsefastifynumberObject.isjson-schema-validationinspectObject.getPrototypeOfbrowserECMAScript 2023kinesistypanionexpressionfind-uproute53Object.assigneveryRFC-6455libphonenumbermkdircalltypescriptmrutimefull-widthpureIteratorYAMLflatteninstallerArray.prototype.findLastcolorwritablereusespringreverseestreedataBigUint64Arraya11yUint8ClampedArrayES2017efficienttoolstype256chromewgetisConcatSpreadablesymlinksiettyshebangenvironmentmobilematchAllbddsafeweaksetsnsECMAScript 2016threefunctionsmocharegular expressionssyntaxRxstyleguidewaitreact-hooksscheme-validationoutputwaapiquerynativepicomatches6hashhardlinkspreprocessoruuidES2022webgesturesgrouptransformsymbolsetECMAScript 2017jsdiffCSShas-ownvestWeakMapdifffast-copyapptc39real-timeenvironmentssameValueZeroindicatorhttpmakecallbackrm -rftrimEndframertypesafehookstestfast-deep-copyrestfulstyleTypedArrayqueueMicrotaskredirectcharacterFloat32ArrayapirouteforkcachemodulesagentserializeinstallWebSocketsuninstallasciisetPrototypeOfregular expressiongettercompilerio-tsprotocol-buffersrandomprototyperouterelectrontrimRightlistenersclifindLastIndexcolorssymbolspushtextES2020ArrayBuffer.prototype.sliceansiglobal objecttrimStartArrayBufferextendimmutablespecsubprocessECMAScript 2021requestmanipulationpackagesquoteendpointenderwidthcloudfrontasyncterminalsharedquerystringi18nvpcsetterchildexecloadbalancinginferenceECMAScript 3eventsURLSearchParamsrequireeventEmitter3dloggerglobrestArray.prototype.flattenfastcopyString.prototype.matchAllinvariantasttapedefineoptimistatomrmchannelReactiveExtensions.env_.extendphonespinnersemrpropreact-hook-formfunctioncodesstylingassertvarsregexpkoreanmanageresclassnamejsonschemareduceconcatMapaccessibilitytypedarrayredux-toolkit6to5plugingetOwnPropertyDescriptorpipedomautoscalingparserartescapeparentsvaluesfindECMAScript 5streamsoption[[Prototype]]utilitiesReflect.getPrototypeOfdirectoryiteratorspinnertesterArrayBuffer#slicelanguageinternaljoihttpsutilspawniamglobalObjectES2016JSONlocationjavascriptperformanceSymbolcloudsearchTypeBoxintrinsicpolyfillfast-clonecoreguidrobustcoercibletoReversedemojiArray.prototype.includesworkerbinariesjasminecjkhasHyBijQuerybyteLengthqsrfc4122Array.prototype.containskeyvariablesvaluebannervalidatecommand-linesharedarraybuffergenericswhatwgcompareES2018asterisksconfigurableformconsumeextralintcore-jsstructuredClonemapviewlogcolourhelperbyteconcatexpressformattingJSON-Schemareduxsuperagentrsspromisetranspilergetintrinsicserializationwrite__proto__trimLeftES2015createdeep-clonereworkstoragegatewaydependency managerReactiveXclasseswalktypedtoSortedroutingcomputed-typesupreactnameobjtransportflagobjectArray.prototype.flatMapmatchcontains0zodESnextstringifypatchECMAScript 2020cssidbabelnamesECMAScript 2019typed arrayjson-schema-validators3fullwidthdynamodbInt32ArrayecmascriptmkdirpoptimizerStreamscurriedclassnamesrecursivecollection.es6sortedanimationarraybuffernodemake dirstylesshimparentlastidletddcryptoInt16Arraypoint-freeECMAScriptpostcssstablewarningcode pointsES7ingraphqlFunction.prototype.namemulti-packageformatprocessArray.prototype.filtermkdirsCSSStyleDeclarationhasOwnPropertyes2017rm -frfullponyfillmoduletranspileprivatedefineProperty
4.12.107

12 months ago

4.12.108

12 months ago

4.12.109

12 months ago

4.12.106

12 months ago

4.12.105

12 months ago

4.12.104

1 year ago

4.12.103

1 year ago

4.12.102

1 year ago

4.11.102

1 year ago

3.11.102

1 year ago

3.11.101

1 year ago

3.11.100

1 year ago

3.11.99

1 year ago

3.11.98

1 year ago

3.11.97

1 year ago

3.11.96

1 year ago

3.11.95

1 year ago

3.11.94

1 year ago

3.11.93

1 year ago

3.11.92

1 year ago

3.11.91

1 year ago

3.11.90

1 year ago

3.11.89

1 year ago

3.10.89

1 year ago

3.10.88

1 year ago

3.10.87

1 year ago

3.10.86

1 year ago

3.10.85

1 year ago

3.10.84

1 year ago

3.10.83

1 year ago

3.10.82

1 year ago

3.10.81

1 year ago

3.10.80

1 year ago

3.10.79

1 year ago

3.9.79

1 year ago

3.9.78

1 year ago

3.9.77

1 year ago

3.9.76

1 year ago

3.9.75

1 year ago

3.9.74

1 year ago

3.9.73

1 year ago

3.9.72

1 year ago

3.9.71

1 year ago

3.9.70

1 year ago

3.9.69

1 year ago

3.8.69

1 year ago

3.7.69

1 year ago

3.7.68

1 year ago

3.7.67

1 year ago

3.7.66

1 year ago

3.7.65

1 year ago

3.7.64

1 year ago

3.7.63

1 year ago

3.7.62

1 year ago

3.7.61

1 year ago

3.7.60

1 year ago

3.7.59

1 year ago

3.7.58

1 year ago

2.7.58

1 year ago

2.7.57

1 year ago

2.7.56

1 year ago

2.7.55

1 year ago

2.6.55

1 year ago

2.6.54

1 year ago

2.6.53

1 year ago

2.6.52

1 year ago

2.6.51

1 year ago

2.5.51

1 year ago

2.5.50

1 year ago

2.5.49

1 year ago

2.5.48

1 year ago

2.5.47

1 year ago

2.4.47

1 year ago

2.4.46

1 year ago

2.4.45

1 year ago

2.4.44

1 year ago

2.4.43

1 year ago

2.4.42

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

2.4.39

1 year ago

2.4.38

1 year ago

2.4.37

1 year ago

2.4.36

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

1.4.34

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.29

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.24

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.2.23

1 year ago

1.2.22

1 year ago

1.2.21

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.1.15

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago