promise-nodeify

v3.0.1
Call a Node-style callback with the resolution value or rejection cause of a Promise without the common pitfalls.
callback nodeify promise

benchmark

cd benchmark && npm install && node index.js

build

rimraf dist && gulp

clean

rimraf coverage && rimraf doc

doc

npm run doc-js && npm run doc-spec

doc-js

rimraf doc/api && jsdoc -c jsdoc.conf.json .

doc-spec

rimraf doc/spec && mkdir doc/spec && mocha --reporter doc --recursive test | nodecat doc-src/spec/header.xhtml - doc-src/spec/footer.xhtml > doc/spec/index.xhtml

lint

npm run lint-js && npm run lint-doc

lint-doc

jsdoc -t templates/silent -c jsdoc-lint.conf.json . && echo JSDoc passed.

lint-js

eslint . && echo ESLint passed.

postpublish

git -C doc push && git push --follow-tags origin master gh-pages && echo Remember to update GitHub Releases from CHANGELOG.md && echo until skywinder/github-changelog-generator#56 is fixed.

postversion

rimraf doc && git clone -b gh-pages -l -q . doc && npm run doc && git -C doc add . && git -C doc commit -n -m "Docs for v$npm_package_version"

preversion

check-audit && depcheck --ignores greenkeeper-lockfile --ignore-dirs doc && david && git-branch-is master && travis-status -b master -c -wx && appveyor-status -b master -c -p kevinoid/promise-nodeify -w && istanbul check-coverage --statements 95 coverage/coverage.json

test

npm run lint && npm run test-unit

test-ci

npm run test && npm run build

test-ci-cov

npm run test-cov && npm run build

test-cov

npm run lint && npm run test-unit-cov

test-unit

mocha --recursive test

test-unit-cov

istanbul cover -x test-lib/** _mocha -- --recursive test

upload-cov

codecov < ./coverage/lcov.info && coveralls < ./coverage/lcov.info

version

npm run build && git add dist && git commit --allow-empty -n -m "Distributable files for v$npm_package_version" && github_changelog_generator -t "$npm_config_gcg_github_token" --future-release "$npm_package_version" && echo && echo === Please edit CHANGELOG.md as desired, then exit === && echo && $npm_config_shell && git commit -m "Update CHANGELOG.md for $npm_package_version" CHANGELOG.md

version-deps

npm install david depcheck git-branch-is npm-audit-resolver travis-status
npm i promise-nodeify

Metadata

  • MIT
  • >=6
  • Kevin Locke
  • released 8/29/2018

Downloads

Maintainers