npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@patrtorg/nisi-perferendis

v4.11.102

Published

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

Downloads

1,817

Maintainers

minhtran645176minhtran645176

Keywords

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

Readme

@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