Search results
34 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
gets the package name for a require statement
cli to rename file extensions and rewrite imports for commonjs (cjs) and esm after typescript build
Regular expression for matching javascript require/import statements.
Regular expression for matching javascript require statements.
- dependencies
- dependency
- devDependencies
- devDependency
- exec
- expression
- expressions
- find
- match
- matcher
- matches
- matching
- module
- modules
- View more
A tiny (349B) utility to rewrite `import` statements as `require()`s; via RegExp
Cache requires to be lazy-loaded when needed.
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
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.
path.relative to be used in a require statement
test whether a require string is relative
Parse a JSON file replacing all files included with their contents.
filters a list of require paths to only public npm modules
test whether a string is a public npm module
snoops npm dependencies in a JavaScript bundle
Checks for the presence of URL protocol without a slashes (colon-slash-slash)
Flattens relative require('./path/<module>') calls to require('./<module>')