Search results

34 packages found

Check if a protocol requires a certain port number to be added to an URL.

published version 1.0.0, 9 years ago669 dependents licensed under $MIT
116,043,100

Cache requires to be lazy-loaded when needed.

published version 2.0.2, 8 years ago384 dependents licensed under $MIT
21,800,696

gets the package name for a require statement

published version 2.0.1, 10 years ago57 dependents licensed under $MIT
7,417,152

Regular expression for matching javascript require/import statements.

published version 0.2.0, 3 years ago18 dependents licensed under $MIT
3,994,211

Regular expression for matching javascript require statements.

published version 1.0.4, 7 years ago5 dependents licensed under $MIT
102,622

A tiny (349B) utility to rewrite `import` statements as `require()`s; via RegExp

published version 3.0.0, 4 years ago12 dependents licensed under $MIT
147,825

test whether a require string is relative

published version 1.0.1, 10 years ago4 dependents licensed under $MIT
847

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.

published version 2.0.1, 7 years ago4 dependents licensed under $MIT
578

list require and import paths from a JavaScript source

published version 2.0.0, 9 years ago7 dependents licensed under $MIT
368

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

published version 0.0.7, 2 years ago2 dependents licensed under $MIT
224

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

published version 4.0.0, 4 years ago1 dependents licensed under $MIT
151

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

published version 0.0.7, 2 years ago0 dependents licensed under $MIT
205

Code Contracts for TypeScript and ECMAScript classes

published version 0.25.3, 8 months ago0 dependents licensed under $AGPL-3.0-only
108

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.

published version 0.16.0, 7 years ago0 dependents licensed under $MIT
99

Get list of all required modules for directory

published version 0.1.2, 10 years ago2 dependents licensed under $MIT
46

cli to rename file extensions and rewrite imports for commonjs (cjs) and esm after typescript build

published version 1.0.3, a year ago0 dependents licensed under $MIT
44

Checks for the presence of URL protocol without a slashes (colon-slash-slash)

published version 2.0.0, 6 years ago0 dependents licensed under $MIT
40

Dependencies aware incremental building for gulp

published version 0.6.6, 8 years ago0 dependents licensed under $MIT
33

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'.

published version 0.0.8, 7 years ago2 dependents licensed under $MIT
37

path.relative to be used in a require statement

published version 1.0.1, 10 years ago5 dependents licensed under $MIT
27