is-regex

v1.1.4
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
regex regexp is regular expression regular expression

prepublishOnly

safe-publish-latest

prepublish

not-in-publish || npm run prepublishOnly

pretest

npm run lint

test

npm run tests-only && npm run test:harmony

tests-only

nyc node test

test:harmony

nyc node --harmony --es-staging test

test:corejs

nyc tape test-corejs.js

posttest

npx aud --production

lint

eslint .

eccheck

eclint check *.js **/*.js > /dev/null

version

auto-changelog && git add CHANGELOG.md

postversion

auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f "v$(node -e "console.log(require('./package.json').version)")"
npm i is-regex

Metadata

  • MIT
  • >= 0.4
  • Jordan Harband
  • released 8/6/2021

Downloads

Maintainers