A tiny regexp checker. If the value isn't a valid regexp, return the string instead.
- Install:
npm install --save regexp-fallback
- Import:
import pkg from ('regexp-fallback')
- Require:
const pkg = require('regexp-fallback').default
<script type="module">
import pkg from '//cdn.skypack.dev/regexp-fallback@^1.0.0'
</script>
<script type="module">
import pkg from '//unpkg.com/regexp-fallback@^1.0.0'
</script>
<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
aliasesregexp-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
Discover the release history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
- Aloys
No sponsors yet! Will you be the first?
No contributors yet! Will you be the first?
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
- Copyright © 2023+ Aloys
and licensed under: