Search results
34 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Check if a protocol requires a certain port number to be added to an URL.
Cache requires to be lazy-loaded when needed.
gets the package name for a require statement
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
test whether a require string is relative
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.
list require and import paths from a JavaScript source
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
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
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
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.
Get list of all required modules for directory
cli to rename file extensions and rewrite imports for commonjs (cjs) and esm after typescript build
Checks for the presence of URL protocol without a slashes (colon-slash-slash)
Dependencies aware incremental building for gulp
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'.
path.relative to be used in a require statement