charlike
Version:
Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options
103 lines (74 loc) • 4.98 kB
Markdown
> List of common callback names - callback, cb, callback_, next, done.
[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]
```
npm i common-callback-names --save
```
> For more use-cases see the [tests](./test.js)
```js
var commonCallbackNames = require('common-callback-names')
console.log(commonCallbackNames)
// =>
// [
// "callback",
// "callback_",
// "cb",
// "cb_",
// "done",
// "next"
// ]
```
> Some of them are used in node core.
**list.json**
```json
[
"callback",
"callback_",
"cb",
"cb_",
"done",
"next"
]
```
* [function-arguments](https://www.npmjs.com/package/function-arguments): Get arguments of a function, useful for and used in dependency injectors.… [more](https://www.npmjs.com/package/function-arguments) | [homepage](https://github.com/tunnckocore/function-arguments)
* [get-fn-name](https://www.npmjs.com/package/get-fn-name): Get function name with strictness and correctness in mind. Also works for… [more](https://www.npmjs.com/package/get-fn-name) | [homepage](https://github.com/tunnckocore/get-fn-name)
* [is-async-function](https://www.npmjs.com/package/is-async-function): Is function really asynchronous function? Trying to guess that based on… [more](https://www.npmjs.com/package/is-async-function) | [homepage](https://github.com/tunnckocore/is-async-function)
* [is-callback-function](https://www.npmjs.com/package/is-callback-function): Returns true if function is a callback. Checks its name is one… [more](https://www.npmjs.com/package/is-callback-function) | [homepage](https://github.com/tunnckocore/is-callback-function)
* [parse-function](https://www.npmjs.com/package/parse-function): Parse a function, arrow function or string to object with name, args,… [more](https://www.npmjs.com/package/parse-function) | [homepage](https://github.com/tunnckocore/parse-function)
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/common-callback-names/issues/new).
But before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.
[![tunnckoCore.tk][author-www-img]][author-www-url] [![keybase tunnckoCore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]
[]: https://www.npmjs.com/package/common-callback-names
[]: https://img.shields.io/npm/v/common-callback-names.svg?label=common-callback-names
[]: https://github.com/tunnckoCore/common-callback-names/blob/master/LICENSE
[]: https://img.shields.io/badge/license-MIT-blue.svg
[]: https://codeclimate.com/github/tunnckoCore/common-callback-names
[]: https://img.shields.io/codeclimate/github/tunnckoCore/common-callback-names.svg
[]: https://travis-ci.org/tunnckoCore/common-callback-names
[]: https://img.shields.io/travis/tunnckoCore/common-callback-names/master.svg
[]: https://coveralls.io/r/tunnckoCore/common-callback-names
[]: https://img.shields.io/coveralls/tunnckoCore/common-callback-names.svg
[]: https://david-dm.org/tunnckoCore/common-callback-names
[]: https://img.shields.io/david/tunnckoCore/common-callback-names.svg
[]: https://github.com/feross/standard
[]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
[]: http://www.tunnckocore.tk
[]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg
[]: https://keybase.io/tunnckocore
[]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg
[]: https://www.npmjs.com/~tunnckocore
[]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg
[]: https://twitter.com/tunnckoCore
[]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg
[]: https://github.com/tunnckoCore
[]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg
[]: http://webchat.freenode.net/?channels=charlike
[]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg
[]: https://github.com/tunnckoCore/ama
[]: https://img.shields.io/badge/ask%20me-anything-green.svg