JSPM

@flex-development/import-regex

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 244
  • Score
    100M100P100Q100052F
  • License BSD-3-Clause

Import statement regex

Package Exports

  • @flex-development/import-regex
  • @flex-development/import-regex/package.json

Readme

import-regex

npm module type: esm license conventional commits github actions typescript vitest yarn

import statement regex.

Contents

What is this?

This package contains regular expressions for matching dynamic and static import statements.

When should I use this?

Use this package when you need to match dynamic or static import statements.

Note:

  • Statements in docblock (/** */), multiline (/* */), and single-line (//) comments are ignored
  • Regular expressions are ECMAScript-compatible. They have not been tested with other flavors (PCRE, PCRE2, etc)

Install

This package is ESM only.

yarn add @flex-development/import-regex

From Git:

yarn add @flex-development/import-regex@flex-development/import-regex
See Git - Protocols | Yarn  for details on requesting a specific branch, commit, or tag.

Use

TODO: Update documentation.

API

TODO: Update documentation.

Types

This package is fully typed with TypeScript.

Contribute

See CONTRIBUTING.md.