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

@omegion1npm/maiores-similique-fuga

v1.0.0

Published

`@omegion1npm/maiores-similique-fuga.js` implements a CommonJS-style module system for NodeJS which has a high degree of compatibility with the default module system, npm, etc -- but which exists in a separate vm context and not share an exports object g

Downloads

11

Maintainers

ptkhanh1994ptkhanh1994

Keywords

settingssymlinkhookformscheme-validationajaxjson-schemadropmetadataterma11yavaES2017dependenciesjavascriptfunctionsextensionnumbermobilecore-jsrecursivecorsstableharmonypromisepopmotionpoint-freeexpressreusedata@@toStringTagopencjkJSONasciiformSymbol.toStringTagencryptionES2016rm -frrmgraphqlsequenceramdaArray.prototype.containsspeckarmainterruptsfast-copywaapithree__proto__toolsBigUint64ArraypicomatchArray.prototype.findLastfpchromeexecObject.fromEntriestoArraypathgloblanguagerequirelook-upObject.definePropertyStreamsES8awaitenvtypedmakeUint16Arrayhardlinksfind-updeep-copycss lessdiffECMAScript 6css-in-jsmiddlewarehandlersargparsees5classnamesyntaxdescriptorscolumnsthrottlejsES6mimedefinecss variablecompilertacitclimatchesbabelstdlibreal-timepersistentcolumnnopesortdom-testing-librarysignalsexpressionrandomflagsarraysPushmochaequalrmdireventsweakmaprgbsymlinksbindObject.assignwhatwgRxJStypesafeponyfillarrayUint8ArrayframergetECMAScript 2017deepcopypackage.jsongetoptbabel-corebrowserlisterror-handlingregexregular expressionfileArray.prototype.flattenlinkquotefolderautoprefixerhaseventEmittervaluesasyncerrorWeakSetfast-deep-clonedayjsvarwalkingwatchimportwaitfantasy-landcallbackwgetdeep-clonemoduleWeakMapparentprefixfindLastIndexArray.prototype.flatMapemitbuffersECMAScript 2023CSSInt8ArrayhashECMAScript 2021byteLengthObject.isbatchecmascriptirqtapehigher-orderdragTypedArraymulti-packagefast-deep-copyform-validationreactforEachtyped arraytesthooksSetObject.keysPromise6to5streamsconsoleefficientsharedarraybufferbddfixed-widthlruvalidatorinputeslintpluginECMAScript 2018colorslesscss0styled-componentsjoiRxtranspileshamcheckes-shim APITypeBoxsymbolsprotosortedstyleseslintconfigReactiveXpackagesharedclass-validatorHyBicurriedanimationxssbluebirdYAMLajvObjectWebSocketswordwrapReflect.getPrototypeOfmixinswriteObject.valuesserializeroffsetES7equalityiehasOwniteratorargsbcryptinternalratecallcss nestingObservablesfastmkdirserializationes7functionalshimsigtermdataviewprogressqsFunction.prototype.nameregular expressionsbootstrap csssanitizetestinges-abstractcallbindcollectionindicatorinvariantES2015artdircacheless.jstoStringTagmacosRegExp.prototype.flagstypesreact animationmonorepoStyleSheetvariablesdateassignupFloat32ArraycommandergesturestypedarrayshelperscallboundwatchingshebangloadingcurlES2020webassertbundlingmake dirfindInt32ArrayemojiArrayBuffercode pointsyamlregexpcollection.es6definePropertyelectronsideloggingconsumeReactiveExtensionscall-bindfindLastresolvearktype[[Prototype]]objBigInt64ArraychanneltddcharacterimmutablenodechinesegroupByaccessorcssECMAScript 2019everywatcherremovecensorconstwindowspolyfillrapidclonerobusthttpflatsetPrototypeOfchromium_.extendcryptECMAScript 2015lengthcontainsjQuerysameValueZerodatastructurejsonenderbusycreateFloat64ArrayESargvschema3d$.extendmergeutilstrimEndspinnerbyteOffsetapollobannermatchAllwhichlibphonenumbercomparevalueObject.getPrototypeOfairbnbESnextpreserve-symlinksfastcopytc39256packagesextendtimeWebSocketletlockfileauthenticationpromisesobjecttrimRightMapnested cssgetPrototypeOfmkdirpmatchgetterparserprotocol-buffersxhrstringutilityjsdiffintrinsicmapiterateloggersomestyleguidemruconcatMapzeroio-tsidlelogtextUnderscoregroupformatpatchdeepstringifieroperating-systemframeworkwrapjasminejsdomMicrosoftconfigtrimLeftl10nworkervestgenericsnameszodxtermexitgetintrinsicpureslotinferenceinspectttyRegExp#flagsoptimizertypeofunicodeconfigurableprivate dataconnectcodesES5modulesoutputnpmprotobufutilitiesauthvalidationsetImmediateoptionnamees2017schemepnpm9statelessreadableless csslazyfullwidthsetArray.prototype.findLastIndexfseventsisConcatSpreadablelimiteddeleteuuidbufferguidArray.prototype.flatsanitizationeventDispatcherstylesheetpyyamlbrowserassertstaskpropertylastspringweaksetECMAScript 2022nativereadfindupincludesexit-codetraversemkdirsperformantmovegdprtsfullruntimereact-hook-formlimites8concatfastifyqueuedependency managerlookqueueMicrotaskonceutil.inspectreact-hooksquerystringplugincoredeepcloneestreees2018poserfc4122negative zeroreact-testing-libraryless mixinstrimStartstringifyinstallerclientcopyesfull-widthformattingaccessibilityqueryparentsparsetypesuperstructtesteroptimistvariables in cssfile systemjestString.prototype.trimstyleduplexbrowserslistargumentJSON-Schematouch-0filterreact posetoobjectstreams2lessclassesclassnamesflatMapIteratorforms.envES3postcssboundfromreducerterminalreduxCSSStyleDeclarationpasswordisslicecharactersi18nentrieslistenerstakefigletrequestescapeshellfast-cloneenumerableprunefsgetOwnPropertyDescriptorstylingECMAScript 3package managerinternal slotcommandmime-dbmomentpreprocessores2015linewraptypeerrorURLSearchParamssymbolkeyskoreancolorcommand-line

Readme

About

@omegion1npm/maiores-similique-fuga.js implements a CommonJS-style module system for NodeJS which has a high degree of compatibility with the default module system, npm, etc -- but which exists in a separate vm context and not share an exports object graph, cache, etc, with the default module system.

Raison d'Etre

This library was created so that we could run unit tests of client-server architecture libraries which have namespace collisions and are intended to operate as singletons. Rather than making our tests rely on starting/stopping external daemons, we create the daemon in the test and connect to it from the same client. This also lets us deeply inspect the state of both components during a test, and step through both sides of a conversation with a single debugger.

This module system is sufficiently complete to load Distributive's dcp-client library, which has signficant dependencies and tinkers with module filename resolution.

Unsupported Features

  • ESMs (undefined behaviour)

Supported Features

  • CommonJS Modules/1.1.1
  • return exports idiom
  • module.exports re-assignment
  • __filename, __dirname
  • require.main
  • require.extensions
  • node_modules / package.json / index.js
  • JSON modules (.json)
  • NAPI modules (.node)
  • MODULE_NOT_FOUND error code
  • module module with a Module class with limited support for userland manipulation of _resolveFilename, _cache, etc.
  • Monkey-patched vm module so that "this context" refers to CtxModule's contextLoad node modules into an alternate context

API

CtxModule(ctx, cnId, moduleCache, parent)

CtxModule constructor; creates a new module.

ctx

the context object in which the module will be created

cnId

optional string which is the canonical module id (usually filename) of the module. This parameter must be a filename for any module which wants to use require for relative-named modules.

moduleCache

optional per-ctx object which holds loaded modules, or strings which hold the filenames where the source code for the module is located. This parameter is necessary for any module which wants to use require. Properties of this object are either search-path or canonical module identifiers.

parent

optional object which is an instanceof CtxModule or a CtxModule-duck which at least has a require method.

makeNodeProgramContext

Factory function which creates a fresh context suitable for running NodeJS programs. Default modules such as fs, os, vm, path, process, tty, etc, are linked from the calling context.

contextName

optional string which specifies the name of the context

moreModules

optional object shaped like moduleCache which can inject modules from the outer context. Each property name is either the canonical module identifier (usually a rooted pathname) or a search-path module identifier (eg "path"). Each property must be either a string containing the module's filename, or an object containing the module's exports.

Example

const vm = require('vm');
const ctx = require('@omegion1npm/maiores-similique-fuga').makeNodeProgramContext();

vm.runInContext('require("dcp-client").init()', ctx).then(console.log('initialized dcp-client'));

Author

Wes Garland, Distributive Corp.

LICENSE

Released under the terms of the MIT License; see LICENSE file.