{
  "_id": "eventemitter-asyncresource",
  "maintainers": [
    {
      "name": "addaleax",
      "email": "anna@addaleax.net"
    }
  ],
  "keywords": [
    "EventEmitter",
    "AsyncResource",
    "async_hooks",
    "events"
  ],
  "dist-tags": {
    "latest": "1.0.0"
  },
  "author": {
    "name": "Anna Henningsen",
    "email": "anna@addaleax.net"
  },
  "_rev": "1-f66825031637a01f392d7349cf2c8fc4",
  "description": "AsyncResource integration for EventEmitter",
  "readme": "# eventemitter-asyncresource - AsyncResource integration for EventEmitter\n\nIntegrates [`EventEmitter`][] with [`AsyncResource`][] for `EventEmitter`s that\nrequire manual async tracking.\n\n```js\nconst { EventEmitterAsyncResource } = require('eventemitter-asyncresource');\n\n// Async tracking tooling will identify this as 'Q'.\nconst ee = new EventEmitterAsyncResource({ name: 'Q' });\n\n// 'foo' listeners will run in this EventEmitter’s async context.P\nee.emit('foo');\n```\n\nThe `EventEmitterAsyncResource` class has the same methods and takes the same\noptions as `EventEmitter` and `AsyncResource` themselves.\n\nIt provides an `.asyncResource` property that allows accessing the async\nresource in question, which in turn provides the original `EventEmitter` via\n`.eventEmitter`, i.e. in the above example\n`ee.asyncResource.eventEmitter === ee`.\n\n[`EventEmitter`]: https://nodejs.org/api/events.html#events_class_eventemitter\n[`AsyncResource`]: https://nodejs.org/api/async_hooks.html#async_hooks_class_asyncresource\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/addaleax/eventemitter-asyncresource.git"
  },
  "bugs": {
    "url": "https://github.com/addaleax/eventemitter-asyncresource/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "eventemitter-asyncresource",
      "version": "1.0.0",
      "description": "AsyncResource integration for EventEmitter",
      "main": "./dist/src/index.js",
      "exports": {
        "import": "./dist/esm-wrapper.mjs",
        "require": "./dist/src/index.js"
      },
      "types": "./dist/src/index.d.ts",
      "scripts": {
        "build": "tsc && gen-esm-wrapper . dist/esm-wrapper.mjs",
        "lint": "standardx \"**/*.{ts,mjs,js,cjs}\" | snazzy",
        "test": "npm run lint && npm run build && npm run test-only",
        "test-only": "tap",
        "prepack": "npm run build"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/addaleax/eventemitter-asyncresource.git"
      },
      "keywords": [
        "EventEmitter",
        "AsyncResource",
        "async_hooks",
        "events"
      ],
      "author": {
        "name": "Anna Henningsen",
        "email": "anna@addaleax.net"
      },
      "license": "MIT",
      "devDependencies": {
        "@types/node": "^13.13.5",
        "@typescript-eslint/eslint-plugin": "^2.28.0",
        "@typescript-eslint/parser": "^2.28.0",
        "gen-esm-wrapper": "^1.0.0",
        "snazzy": "^8.0.0",
        "standardx": "^5.0.0",
        "tap": "^14.10.7",
        "typescript": "^3.8.3"
      },
      "eslintConfig": {
        "rules": {
          "semi": [
            "error",
            "always"
          ],
          "no-unused-vars": "off",
          "@typescript-eslint/no-unused-vars": "error"
        }
      },
      "standardx": {
        "parser": "@typescript-eslint/parser",
        "plugins": [
          "@typescript-eslint/eslint-plugin"
        ]
      },
      "gitHead": "8e83f3dc9ddc4f09d0ddad4fb34c5930952c2424",
      "bugs": {
        "url": "https://github.com/addaleax/eventemitter-asyncresource/issues"
      },
      "homepage": "https://github.com/addaleax/eventemitter-asyncresource#readme",
      "_id": "eventemitter-asyncresource@1.0.0",
      "_nodeVersion": "15.0.0-pre",
      "_npmVersion": "6.14.4",
      "dist": {
        "integrity": "sha512-39F7TBIV0G7gTelxwbEqnwhp90eqCPON1k0NwNfwhgKn4Co4ybUbj2pECcXT0B3ztRKZ7Pw1JujUUgmQJHcVAQ==",
        "shasum": "734ff2e44bf448e627f7748f905d6bdd57bdb65b",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/eventemitter-asyncresource/-/eventemitter-asyncresource-1.0.0.tgz",
        "fileCount": 13,
        "unpackedSize": 14032,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetfnCCRA9TVsSAnZWagAAlCkQAJQCbkhW1udrlKjFTy5K\n4G2yr3Wnbop4VUCRAWaNGL3iFcwsMEhas/6mUQzfE5OHld6e/F1XVGSxhcd9\nygGDwEJc8+9PBfJXhzgbkClTA5NdWEiryAP0CQOimACLFE3MnS+/stVMzPnC\nP/EPwSu67Kz0iVvX1m/2KA1rKsuPIP1p99aY1DiEoziXeEc5QxA6qqYUZjUX\n2NnY8DQ3YFFqtREBBQTcd4GrN2fqgjnjLz3mHjv4OGve8LRaSVXbgS3iFvau\n0cudTbMsyD4aOL9+rzmsfaizb/PHoBrnlju+iGkqXt/Vw4E78C82kS/FrU+x\nxFy9Miuj/txKTndGRFTNzz2+p3oeoyUsW9gdzzeM0J9Mar+EODPFM7VDXPZK\noWPJbj80rMOdxYDM8tF5Hf4l3hal+HOWZ6EIgFFPKU/U58eGGJfG2m52BsZm\nP+KxHGImSnn17CGnvhurQhOUAFIYUfmaYF4+DFDT6LaYVz7LdgG3BTEezEQ9\ns84Q8fQbHQqATmzEnoy3dbgUAAo1tZZBVdhMVvQlkWsNBxbW51h0fDRKh45/\n2lKDLHrBbRehQb8i0I/ikm9dGtFJqz4bccpAE5jngXO46k72tegbbSLEEg8/\nS+Nlo+7T+VwtRr6NaWMPs3l8IyCCS/lpUSQFfuGQpvWudLwQk86axMtjdo3T\nCmB6\r\n=BXUz\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDP3URNFG7xa8snyThDhCq2yz3oCtR9M/42K+VBGhZczQIhAO9E5ah2963yzsjD2UNIKgpaItW555FCjfaz8X2h1bay"
          }
        ]
      },
      "maintainers": [
        {
          "name": "addaleax",
          "email": "anna@addaleax.net"
        }
      ],
      "_npmUser": {
        "name": "addaleax",
        "email": "anna@addaleax.net"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/eventemitter-asyncresource_1.0.0_1588984257962_0.45417605496629365"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "eventemitter-asyncresource",
  "time": {
    "created": "2020-05-09T00:30:57.962Z",
    "1.0.0": "2020-05-09T00:30:58.066Z",
    "modified": "2026-05-21T15:31:04.667Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/addaleax/eventemitter-asyncresource#readme"
}