is-generator-function

v1.0.10
Determine if a function is a native generator function.
generator generator function es6 es2015 yield function function*

prepublishOnly

safe-publish-latest

prepublish

not-in-publish || npm run prepublishOnly

pretest

npm run lint

test

npm run tests-only

tests-only

nyc npm run test:all

test:all

npm run test:index && npm run test:corejs && npm run test:uglified

test:harmony

node --es-staging --harmony test && node --es-staging --harmony test/corejs && node --es-staging --harmony test/uglified

test:index

node test

test:corejs

node test/corejs

test:uglified

node test/uglified

posttest

aud --production

lint

eslint .

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-generator-function

Metadata

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

Downloads

Maintainers