├── .eslintrc.json ├── .github ├── ISSUE_TEMPLATE │ └── bug_report.md └── workflows │ ├── release.yml │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── __tests__ ├── emit.ts ├── eventNames.ts ├── listenerCount.ts ├── listeners.ts ├── on.ts ├── once.ts ├── prependListener.ts ├── prependOnceListener.ts ├── removeAllListeners.ts ├── removeListener.ts └── symbols.ts ├── _config.yml ├── benchmarks ├── README.md ├── add-remove.js ├── context.js ├── emit-multiple-listeners.js ├── emit.js ├── hundreds.js ├── init.js ├── listeners.js ├── once.js ├── package.json └── start.sh ├── jest.config.js ├── package.json ├── src ├── EventEmitter.ts ├── Listener.ts └── index.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/emit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/emit.ts -------------------------------------------------------------------------------- /__tests__/eventNames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/eventNames.ts -------------------------------------------------------------------------------- /__tests__/listenerCount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/listenerCount.ts -------------------------------------------------------------------------------- /__tests__/listeners.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/listeners.ts -------------------------------------------------------------------------------- /__tests__/on.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/on.ts -------------------------------------------------------------------------------- /__tests__/once.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/once.ts -------------------------------------------------------------------------------- /__tests__/prependListener.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/prependListener.ts -------------------------------------------------------------------------------- /__tests__/prependOnceListener.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/prependOnceListener.ts -------------------------------------------------------------------------------- /__tests__/removeAllListeners.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/removeAllListeners.ts -------------------------------------------------------------------------------- /__tests__/removeListener.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/removeListener.ts -------------------------------------------------------------------------------- /__tests__/symbols.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/__tests__/symbols.ts -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/_config.yml -------------------------------------------------------------------------------- /benchmarks/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/README.md -------------------------------------------------------------------------------- /benchmarks/add-remove.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/add-remove.js -------------------------------------------------------------------------------- /benchmarks/context.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/context.js -------------------------------------------------------------------------------- /benchmarks/emit-multiple-listeners.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/emit-multiple-listeners.js -------------------------------------------------------------------------------- /benchmarks/emit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/emit.js -------------------------------------------------------------------------------- /benchmarks/hundreds.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/hundreds.js -------------------------------------------------------------------------------- /benchmarks/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/init.js -------------------------------------------------------------------------------- /benchmarks/listeners.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/listeners.js -------------------------------------------------------------------------------- /benchmarks/once.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/once.js -------------------------------------------------------------------------------- /benchmarks/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/package.json -------------------------------------------------------------------------------- /benchmarks/start.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/benchmarks/start.sh -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/package.json -------------------------------------------------------------------------------- /src/EventEmitter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/src/EventEmitter.ts -------------------------------------------------------------------------------- /src/Listener.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/src/Listener.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/src/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foxifyjs/events/HEAD/tsconfig.json --------------------------------------------------------------------------------