Search results
34 packages found
Check if a protocol requires a certain port number to be added to an URL.
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
Cache requires to be lazy-loaded when needed.
Parse a JSON file replacing all files included with their contents.
gets the package name for a require statement
cli to rename file extensions and rewrite imports for commonjs (cjs) and esm after typescript build
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
Regular expression for matching javascript require/import statements.
Cache requires to be lazy-loaded when needed.
A tiny (349B) utility to rewrite `import` statements as `require()`s; via RegExp
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
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
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
test whether a require string is relative
filters a list of require paths to only public npm modules
test whether a string is a public npm module
Checks for the presence of URL protocol without a slashes (colon-slash-slash)