JSPM

Found 34 results for requires

requires-port

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

  • v1.0.0
  • 122.16
  • Published

lazy-cache

Cache requires to be lazy-loaded when needed.

  • v2.0.2
  • 104.47
  • Published

deps-regex

Regular expression for matching javascript require/import statements.

  • v0.2.0
  • 97.66
  • Published

requires-regex

Regular expression for matching javascript require statements.

  • v1.0.4
  • 78.05
  • Published

rewrite-imports

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

  • v3.0.0
  • 77.01
  • Published

match-requires

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.

  • v2.0.1
  • 42.26
  • Published

get-imported

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

  • v0.0.7
  • 39.36
  • Published

check-esm

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

  • v0.0.7
  • 37.99
  • Published

moduletype

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

  • v0.0.8
  • 28.82
  • Published

dbc-code-contracts

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.

  • v0.16.0
  • 23.83
  • Published

all-requires

Get list of all required modules for directory

  • v0.1.2
  • 21.59
  • Published

rewrite-cjs-esm-paths

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

  • v1.0.3
  • 18.22
  • Published

snoop-bundle-deps

snoops npm dependencies in a JavaScript bundle

  • v1.0.2
  • 14.07
  • Published

denuto

Design by contract for JavaScript

  • v0.1.2
  • 13.67
  • Published

lint-deps

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

  • v4.0.0
  • 13.63
  • Published

lazy-cache-cli

CLI for adding a `utils.js` file with lazy-cached requires.

  • v0.2.3
  • 11.20
  • Published

is-npm-module

test whether a string is a public npm module

  • v1.0.0
  • 10.57
  • Published

map-requires

Match require statements in a glob of files. Returns an an object files, each with an array of objects describing each require statement found. Each require statement object has a line number, variable name, and module name. Statements in code comments ar

  • v0.1.0
  • 9.90
  • Published

requiresjs

A module loader

  • v1.1.0
  • 9.66
  • Published

gulp-flatten-requires

Flattens relative require('./path/<module>') calls to require('./<module>')

  • v1.0.0
  • 9.11
  • Published

filter-npm-modules

filters a list of require paths to only public npm modules

  • v1.0.0
  • 8.77
  • Published

gulp-walker

Dependencies aware incremental building for gulp

  • v0.6.6
  • 4.70
  • Published

grunt-combine-harvester

Scans through source code for "@requires" statements and produces a combined file which satisfies the dependencies

  • v0.1.0
  • 4.55
  • Published

stylus-requires

Quickly find dependencies in a stylus string

  • v0.1.0
  • 4.45
  • Published

lazy-cache-copy

Cache requires to be lazy-loaded when needed.

  • v2.0.5
  • 0.00
  • Published

@jf/json-parse

Parse a JSON file replacing all files included with their contents.

  • v1.1.0
  • 0.00
  • Published