regexp-fallback
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

regexp-fallback

NPM version NPM downloads

A tiny regexp checker. If the value isn't a valid regexp, return the string instead.

Usage

Complete API Documentation.

Install

npm

  • Install: npm install --save regexp-fallback
  • Import: import pkg from ('regexp-fallback')
  • Require: const pkg = require('regexp-fallback').default

Skypack

<script type="module">
    import pkg from '//cdn.skypack.dev/regexp-fallback@^1.0.0'
</script>

unpkg

<script type="module">
    import pkg from '//unpkg.com/regexp-fallback@^1.0.0'
</script>

jspm

<script type="module">
    import pkg from '//dev.jspm.io/regexp-fallback@1.0.0'
</script>

This package is published with the following editions:

  • regexp-fallback/source/index.ts is TypeScript source code with Import for modules
  • regexp-fallback/edition-browsers/index.js is TypeScript compiled against ES2022 for web browsers with Import for modules
  • regexp-fallback aliases regexp-fallback/edition-es2022/index.js
  • regexp-fallback/edition-es2022/index.js is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules
  • regexp-fallback/edition-es2022-esm/index.js is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

  • Aloys

Sponsors

No sponsors yet! Will you be the first?

Contributors

No contributors yet! Will you be the first?

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

  • Copyright © 2023+ Aloys

and licensed under:

Package Sidebar

Install

npm i regexp-fallback

Weekly Downloads

25

Version

1.0.0

License

Artistic-2.0

Unpacked Size

57.9 kB

Total Files

14

Last publish

Collaborators

  • aloys_b