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.
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
Parse a JSON file replacing all files included with their contents.
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
gets the package name for a require statement
cli to rename file extensions and rewrite imports for commonjs (cjs) and esm after typescript build
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'.
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.
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
Cache requires to be lazy-loaded when needed.
A tiny (349B) utility to rewrite `import` statements as `require()`s; via RegExp
test whether a require string is relative
path.relative to be used in a require statement
Checks for the presence of URL protocol without a slashes (colon-slash-slash)