Gathering detailed insights and metrics for @omegion1npm/maiores-similique-fuga
Gathering detailed insights and metrics for @omegion1npm/maiores-similique-fuga
Gathering detailed insights and metrics for @omegion1npm/maiores-similique-fuga
Gathering detailed insights and metrics for @omegion1npm/maiores-similique-fuga
npm install @omegion1npm/maiores-similique-fuga
Typescript
Module System
Node Version
NPM Version
61.9
Supply Chain
48.1
Quality
74.8
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
495
Last Day
8
Last Week
67
Last Month
267
Last Year
422
MIT License
3,321 Commits
1 Branches
1 Contributors
Updated on Jun 15, 2025
Latest Version
1.0.0
Package Id
@omegion1npm/maiores-similique-fuga@1.0.0
Unpacked Size
18.60 kB
Size
7.32 kB
File Count
10
NPM Version
10.5.0
Node Version
20.12.2
Published on
Apr 26, 2024
Cumulative downloads
Total Downloads
Last Day
0%
8
Compared to previous day
Last Week
19.6%
67
Compared to previous week
Last Month
602.6%
267
Compared to previous month
Last Year
478.1%
422
Compared to previous year
25
@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.
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.
module
module with a Module class with limited support for userland manipulation of
_resolveFilename, _cache, etc.vm
module so that "this context" refers to CtxModule's contextLoad node modules into an alternate contextCtxModule constructor; creates a new module.
the context object in which the module will be created
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.
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.
optional object which is an instanceof CtxModule or a CtxModule-duck which at least has a require method.
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.
optional string which specifies the name of the context
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.
1const vm = require('vm'); 2const ctx = require('@omegion1npm/maiores-similique-fuga').makeNodeProgramContext(); 3 4vm.runInContext('require("dcp-client").init()', ctx).then(console.log('initialized dcp-client'));
Wes Garland, Distributive Corp.
Released under the terms of the MIT License; see LICENSE file.
No vulnerabilities found.
No security vulnerabilities found.