33 packages found
Check if a protocol requires a certain port number to be added to an URL.
Cache requires to be lazy-loaded when needed.
Code Contracts for TypeScript and ECMAScript classes
- assertion
- biconditional
- behavioral-subtyping
- code-contracts
- decorators
- demands
- design-by-contract
- encapsulation
- exception-handling
- if-and-only-if
- invariant
- liskov-substitution-principle
- LSP
- material-implication
- View more
The module has JS functions to check all imports or required modules and check if the file is a ES Module or a CJS/ JS Module or Script
- require
- cache
- uncache
- uncached
- module
- fresh
- fetch
- all
- imports
- requires
- es imports
- cjs import
- cjs require
- mjs import
- View more
The module has JS functions to check all imports or required modules and check if the file is a ES Module or a CJS/ JS Module or Script
- require
- cache
- uncache
- uncached
- module
- fresh
- fetch
- all
- imports
- requires
- es imports
- cjs import
- cjs require
- mjs import
- View more
A tiny (349B) utility to rewrite `import` statements as `require()`s; via RegExp
Parse a JSON file replacing all files included with their contents.
Cache requires to be lazy-loaded when needed.
gets the package name for a require statement
ES6 classes, which offer the Design by Contract (DbC) approach, which is also known as the contract programming and other useful methods for the quick work.
Regular expression for matching javascript require/import statements.
Scans through source code for "@requires" statements and produces a combined file which satisfies the dependencies
Pass in the string representation of a file to get the file's module pattern. `moduletype` returns the module pattern type used by a script, for example 'cjs' or 'esm'.
Quickly find dependencies in a stylus string
Regular expression for matching javascript require statements.
- dependencies
- dependency
- devDependencies
- devDependency
- exec
- expression
- expressions
- find
- match
- matcher
- matches
- matching
- module
- modules
- View more
Get list of all required modules for directory
CLI tool that tells you when dependencies are missing from package.json and offers you a choice to install them. Also tells you when dependencies are listed in package.json but are not being used anywhere in your project. Node.js command line tool and API
- dep
- dependencies
- dependency
- deps
- detect
- detective
- devDependencies
- extra
- find
- installed
- lint
- missing
- new
- require
- View more
Match require statements in a string. Returns an array of matching require statements. Each match is an object with line number, variable name, and module name. Statements in code comments are ignored.
filters a list of require paths to only public npm modules