4.12.109 • Published 10 months ago

@patrtorg/nisi-perferendis v4.12.109

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

4.12.108

10 months ago

4.12.109

10 months ago

4.12.106

10 months ago

4.12.105

10 months ago

4.12.104

10 months ago

4.12.103

10 months ago

4.12.102

10 months ago

4.11.102

10 months ago

3.11.102

10 months ago

3.11.101

10 months ago

3.11.100

10 months ago

3.11.99

10 months ago

3.11.98

10 months ago

3.11.97

10 months ago

3.11.96

10 months ago

3.11.95

10 months ago

3.11.94

10 months ago

3.11.93

10 months ago

3.11.92

10 months ago

3.11.91

10 months ago

3.11.90

10 months ago

3.11.89

11 months ago

3.10.89

11 months ago

3.10.88

11 months ago

3.10.87

11 months ago

3.10.86

11 months ago

3.10.85

11 months ago

3.10.84

11 months ago

3.10.83

11 months ago

3.10.82

11 months ago

3.10.81

11 months ago

3.10.80

11 months ago

3.10.79

11 months ago

3.9.79

11 months ago

3.9.78

11 months ago

3.9.77

11 months ago

3.9.76

11 months ago

3.9.75

11 months ago

3.9.74

11 months ago

3.9.73

11 months ago

3.9.72

11 months ago

3.9.71

11 months ago

3.9.70

11 months ago

3.9.69

11 months ago

3.8.69

11 months ago

3.7.69

11 months ago

3.7.68

11 months ago

3.7.67

11 months ago

3.7.66

11 months ago

3.7.65

11 months ago

3.7.64

11 months ago

3.7.63

12 months ago

3.7.62

12 months ago

3.7.61

12 months ago

3.7.60

12 months ago

3.7.59

12 months ago

3.7.58

12 months ago

2.7.58

12 months ago

2.7.57

12 months ago

2.7.56

12 months ago

2.7.55

12 months ago

2.6.55

12 months ago

2.6.54

12 months ago

2.6.53

12 months ago

2.6.52

12 months ago

2.6.51

12 months ago

2.5.51

12 months ago

2.5.50

12 months ago

2.5.49

12 months ago

2.5.48

12 months ago

2.5.47

12 months 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