{"id":15365782,"url":"https://github.com/tunnckocore/dush-no-chaining","last_synced_at":"2026-01-19T08:01:35.468Z","repository":{"id":40945049,"uuid":"85467307","full_name":"tunnckoCore/dush-no-chaining","owner":"tunnckoCore","description":"A plugin that removes the emitter methods chaining support for `dush`, `base`, `minibase` or anything based on them","archived":false,"fork":false,"pushed_at":"2023-01-12T05:53:20.000Z","size":487,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T04:37:43.186Z","etag":null,"topics":["baseplugin","chaining","dushplugin","emitter","events","minibaseplugin","plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tunnckoCore.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-19T10:22:52.000Z","updated_at":"2023-03-04T04:44:46.000Z","dependencies_parsed_at":"2023-02-09T10:16:10.374Z","dependency_job_id":null,"html_url":"https://github.com/tunnckoCore/dush-no-chaining","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tunnckoCore/dush-no-chaining","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fdush-no-chaining","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fdush-no-chaining/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fdush-no-chaining/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fdush-no-chaining/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tunnckoCore","download_url":"https://codeload.github.com/tunnckoCore/dush-no-chaining/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fdush-no-chaining/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28563214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baseplugin","chaining","dushplugin","emitter","events","minibaseplugin","plugin"],"created_at":"2024-10-01T13:16:04.563Z","updated_at":"2026-01-19T08:01:35.434Z","avatar_url":"https://github.com/tunnckoCore.png","language":"JavaScript","funding_links":["https://www.paypal.me/tunnckoCore"],"categories":[],"sub_categories":[],"readme":"# dush-no-chaining [![NPM version](https://img.shields.io/npm/v/dush-no-chaining.svg?style=flat)](https://www.npmjs.com/package/dush-no-chaining) [![mit license][license-img]][license-url] [![NPM monthly downloads](https://img.shields.io/npm/dm/dush-no-chaining.svg?style=flat)](https://npmjs.org/package/dush-no-chaining) [![npm total downloads][downloads-img]][downloads-url]\n\n\u003e A plugin that removes the emitter methods chaining support for `dush`, `base`, `minibase` or anything based on them\n\n[![code climate][codeclimate-img]][codeclimate-url] \n[![code style][standard-img]][standard-url] \n[![linux build][travis-img]][travis-url] \n[![windows build][appveyor-img]][appveyor-url] \n[![code coverage][coverage-img]][coverage-url] \n[![dependency status][david-img]][david-url]\n[![paypal donate][paypalme-img]][paypalme-url] \n\nYou might also be interested in [dush](https://github.com/tunnckocore/dush#readme).\n\n## Table of Contents\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n  * [noChaining](#nochaining)\n- [Related](#related)\n- [Contributing](#contributing)\n- [Building docs](#building-docs)\n- [Running tests](#running-tests)\n- [Author](#author)\n- [License](#license)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\nInstall with [npm](https://www.npmjs.com/)\n\n```\n$ npm install dush-no-chaining --save\n```\n\nor install using [yarn](https://yarnpkg.com)\n\n```\n$ yarn add dush-no-chaining\n```\n\n## Usage\n\u003e For more use-cases see the [tests](test.js)\n\n```js\nconst dushNoChaining = require('dush-no-chaining')\n```\n\n## API\n\n### [noChaining](index.js#L55)\n\u003e A plugin that removes support for emitter methods to be chainable. Basically, by default [dush][]'s methods (and most of other eventemitters) are chainable and some user don't like that feature that I need.\n\n* `returns` **{Function}**: A plugin function that can be passed to [dush][], [minibase][] or [base][]  \n\n**Example**\n\n```js\nconst dush = require('dush')\nconst noChaining = require('dush-no-chaining')\n\nconst app = dush()\n\n// by default they are chainable\napp\n  .on('foo', () =\u003e {})\n  .once('bar', () =\u003e {})\n  .emit('bar', 123)\n  .off('foo')\n  .emit('bar', 333)\n  .emit('foo', 1)\n\n// but when add this plugin\n// they are not chainable\nconst emitter = dush().use(noChaining())\n\nconst noop = () =\u003e {}\nconst on = emitter.on('foo', noop)\nconsole.log(on) // =\u003e undefined\n\nconst off = emitter.off('foo', noop)\nconsole.log(off) // =\u003e undefined\n\nconst once = emitter.once('bar', noop)\nconsole.log(once) // =\u003e undefined\n\nconst emit = emitter.emit('bar', 123)\nconsole.log(emit) // =\u003e undefined\n```\n\n## Related\n- [always-done](https://www.npmjs.com/package/always-done): Handle completion and errors with elegance! Support for streams, callbacks, promises, child processes, async/await and sync functions. A drop-in replacement… [more](https://github.com/hybridables/always-done#readme) | [homepage](https://github.com/hybridables/always-done#readme \"Handle completion and errors with elegance! Support for streams, callbacks, promises, child processes, async/await and sync functions. A drop-in replacement for [async-done][] - pass 100% of its tests plus more\")\n- [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting with a handful of common… [more](https://github.com/node-base/base) | [homepage](https://github.com/node-base/base \"base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting with a handful of common methods, like `set`, `get`, `del` and `use`.\")\n- [dush-methods](https://www.npmjs.com/package/dush-methods): Plugin for `dush` and anything based on it. It adds helper `.define` and `.delegate` methods | [homepage](https://github.com/tunnckocore/dush-methods#readme \"Plugin for `dush` and anything based on it. It adds helper `.define` and `.delegate` methods\")\n- [dush-tap-report](https://www.npmjs.com/package/dush-tap-report): A simple TAP report producer based on event system. A plugin for `dush` event emitter or anything based on it | [homepage](https://github.com/tunnckocore/dush-tap-report#readme \"A simple TAP report producer based on event system. A plugin for `dush` event emitter or anything based on it\")\n- [dush](https://www.npmjs.com/package/dush): Microscopic \u0026 functional event emitter in ~260 bytes, extensible through plugins. | [homepage](https://github.com/tunnckocore/dush#readme \"Microscopic \u0026 functional event emitter in ~260 bytes, extensible through plugins.\")\n- [find-callsite](https://www.npmjs.com/package/find-callsite): Finds the correct place where the stack trace was started, not the place where error was thrown | [homepage](https://github.com/tunnckocore/find-callsite#readme \"Finds the correct place where the stack trace was started, not the place where error was thrown\")\n- [minibase-create-plugin](https://www.npmjs.com/package/minibase-create-plugin): Utility for [minibase][] and [base][] that helps you create plugins | [homepage](https://github.com/node-minibase/minibase-create-plugin#readme \"Utility for [minibase][] and [base][] that helps you create plugins\")\n- [minibase](https://www.npmjs.com/package/minibase): Minimalist alternative for Base. Build complex APIs with small units called plugins. Works well with most of the already existing… [more](https://github.com/node-minibase/minibase#readme) | [homepage](https://github.com/node-minibase/minibase#readme \"Minimalist alternative for Base. Build complex APIs with small units called plugins. Works well with most of the already existing [base][] plugins.\")\n- [stacktrace-metadata](https://www.npmjs.com/package/stacktrace-metadata): Modify given `err` object to be more useful - adds `at`, `line`, `column`, `place` and `filename` properties and also cleans… [more](https://github.com/tunnckocore/stacktrace-metadata#readme) | [homepage](https://github.com/tunnckocore/stacktrace-metadata#readme \"Modify given `err` object to be more useful - adds `at`, `line`, `column`, `place` and `filename` properties and also cleans stack traces.\")\n- [try-catch-core](https://www.npmjs.com/package/try-catch-core): Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and… [more](https://github.com/hybridables/try-catch-core#readme) | [homepage](https://github.com/hybridables/try-catch-core#readme \"Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and used in higher-level libs such as [always-done][] to handle completion of anything.\")\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/dush-no-chaining/issues/new).  \nPlease read the [contributing guidelines](CONTRIBUTING.md) for advice on opening issues, pull requests, and coding standards.  \nIf you need some help and can spent some cash, feel free to [contact me at CodeMentor.io](https://www.codementor.io/tunnckocore?utm_source=github\u0026utm_medium=button\u0026utm_term=tunnckocore\u0026utm_campaign=github) too.\n\n**In short:** If you want to contribute to that project, please follow these things\n\n1. Please DO NOT edit [README.md](README.md), [CHANGELOG.md](CHANGELOG.md) and [.verb.md](.verb.md) files. See [\"Building docs\"](#building-docs) section.\n2. Ensure anything is okey by installing the dependencies and run the tests. See [\"Running tests\"](#running-tests) section.\n3. Always use `npm run commit` to commit changes instead of `git commit`, because it is interactive and user-friendly. It uses [commitizen][] behind the scenes, which follows Conventional Changelog idealogy.\n4. Do NOT bump the version in package.json. For that we use `npm run release`, which is [standard-version][] and follows Conventional Changelog idealogy.\n\nThanks a lot! :)\n\n## Building docs\nDocumentation and that readme is generated using [verb-generate-readme][], which is a [verb][] generator, so you need to install both of them and then run `verb` command like that\n\n```\n$ npm install verbose/verb#dev verb-generate-readme --global \u0026\u0026 verb\n```\n\n_Please don't edit the README directly. Any changes to the readme must be made in [.verb.md](.verb.md)._\n\n## Running tests\nClone repository and run the following in that cloned directory\n\n```\n$ npm install \u0026\u0026 npm test\n```\n\n## Author\n**Charlike Mike Reagent**\n\n+ [github/tunnckoCore](https://github.com/tunnckoCore)\n+ [twitter/tunnckoCore](https://twitter.com/tunnckoCore)\n+ [codementor/tunnckoCore](https://codementor.io/tunnckoCore)\n\n## License\nCopyright © 2017, [Charlike Mike Reagent](https://i.am.charlike.online). Released under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on March 22, 2017._  \n_Project scaffolded using [charlike][] cli._\n\n[always-done]: https://github.com/hybridables/always-done\n[async-done]: https://github.com/gulpjs/async-done\n[base]: https://github.com/node-base/base\n[charlike]: https://github.com/tunnckocore/charlike\n[commitizen]: https://github.com/commitizen/cz-cli\n[dezalgo]: https://github.com/npm/dezalgo\n[minibase]: https://github.com/node-minibase/minibase\n[once]: https://github.com/isaacs/once\n[standard-version]: https://github.com/conventional-changelog/standard-version\n[verb-generate-readme]: https://github.com/verbose/verb-generate-readme\n[verb]: https://github.com/verbose/verb\n\n[license-url]: https://www.npmjs.com/package/dush-no-chaining\n[license-img]: https://img.shields.io/npm/l/dush-no-chaining.svg\n\n[downloads-url]: https://www.npmjs.com/package/dush-no-chaining\n[downloads-img]: https://img.shields.io/npm/dt/dush-no-chaining.svg\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/dush-no-chaining\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/dush-no-chaining.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/dush-no-chaining\n[travis-img]: https://img.shields.io/travis/tunnckoCore/dush-no-chaining/master.svg?label=linux\n\n[appveyor-url]: https://ci.appveyor.com/project/tunnckoCore/dush-no-chaining\n[appveyor-img]: https://img.shields.io/appveyor/ci/tunnckoCore/dush-no-chaining/master.svg?label=windows\n\n[coverage-url]: https://codecov.io/gh/tunnckoCore/dush-no-chaining\n[coverage-img]: https://img.shields.io/codecov/c/github/tunnckoCore/dush-no-chaining/master.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/dush-no-chaining\n[david-img]: https://img.shields.io/david/tunnckoCore/dush-no-chaining.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n[paypalme-url]: https://www.paypal.me/tunnckoCore\n[paypalme-img]: https://img.shields.io/badge/paypal-donate-brightgreen.svg\n\n[dush]: https://github.com/tunnckocore/dush","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Fdush-no-chaining","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftunnckocore%2Fdush-no-chaining","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Fdush-no-chaining/lists"}