{
  "_id": "estree-util-attach-comments",
  "maintainers": [
    {
      "name": "wooorm",
      "email": "tituswormer@gmail.com"
    },
    {
      "name": "kmck",
      "email": "keith@mcknig.ht"
    }
  ],
  "keywords": [
    "estree",
    "ast",
    "ecmascript",
    "javascript",
    "tree",
    "comment",
    "acorn",
    "espree",
    "recast"
  ],
  "dist-tags": {
    "latest": "3.0.0"
  },
  "author": {
    "name": "Titus Wormer",
    "email": "tituswormer@gmail.com",
    "url": "https://wooorm.com"
  },
  "_rev": "7-4467e3084bcce6b4b849369116f416ad",
  "description": "Attach comments to estree nodes",
  "readme": "# estree-util-attach-comments\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n[estree][] utility attach semistandard comment nodes (such as from [acorn][]) to\nthe nodes in that tree.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`attachComments(tree, comments)`](#attachcommentstree-comments)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a utility that you can use to embed comment nodes *inside* a\ntree.\nThis is useful because certain estree parsers give you an array (espree and\nacorn) whereas other estree tools expect comments to be embedded on nodes in the\ntree.\n\nThis package uses one `comments` array where each comment has `leading` and\n`trailing` fields, as applied by `acorn`, but does not support the slightly\ndifferent non-standard comments made by `espree`.\n\n## When should I use this?\n\nYou can use this package when working with comments from Acorn and later working\nwith a tool such as recast or Babel.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install estree-util-attach-comments\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {attachComments} from 'https://esm.sh/estree-util-attach-comments@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {attachComments} from 'https://esm.sh/estree-util-attach-comments@3?bundle'\n</script>\n```\n\n## Use\n\nSay our document `x.js` contains:\n\n```js\n/* 1 */ function /* 2 */ a /* 3 */(/* 4 */ b) /* 5 */ {\n  /* 6 */ return /* 7 */ b + /* 8 */ 1 /* 9 */\n}\n```\n\n…and our module `example.js` looks as follows:\n\n```js\nimport fs from 'node:fs/promises'\nimport {parse} from 'acorn'\nimport {attachComments} from 'estree-util-attach-comments'\nimport recast from 'recast'\n\nconst code = String(await fs.readFile('x.js'))\nconst comments = []\nconst tree = parse(code, {\n  sourceType: 'module',\n  ecmaVersion: 'latest',\n  onComment: comments\n})\n\nattachComments(tree, comments)\n\nconsole.log(recast.print(tree).code)\n```\n\nYields:\n\n```js\n/* 1 */\nfunction /* 2 */\na(\n    /* 3 */\n    /* 4 */\n    b\n) /* 5 */\n{\n    /* 6 */\n    return (\n        /* 7 */\n        b + /* 8 */\n        1\n    );\n}/* 9 */\n```\n\n> 👉 **Note**: the lines are added by `recast` in this case.\n> And, some of these weird comments are off, but they’re pretty close.\n\n## API\n\nThis package exports the identifier [`attachComments`][api-attach-comments].\nThere is no default export.\n\n### `attachComments(tree, comments)`\n\nAttach semistandard estree comment nodes to the tree.\n\nThis mutates the given [`tree`][estree].\nIt takes `comments`, walks the tree, and adds comments as close as possible\nto where they originated.\n\nComment nodes are given two boolean fields: `leading` (`true` for `/* a */ b`)\nand `trailing` (`true` for `a /* b */`).\nBoth fields are `false` for dangling comments: `[/* a */]`.\nThis is what `recast` uses too, and is somewhat similar to Babel, which is not\nestree but instead uses `leadingComments`, `trailingComments`, and\n`innerComments` arrays on nodes.\n\nThe algorithm checks any node: even recent (or future) proposals or nonstandard\nsyntax such as JSX, because it ducktypes to find nodes instead of having a list\nof visitor keys.\n\nThe algorithm supports `loc` fields (line/column), `range` fields (offsets),\nand direct `start` / `end` fields.\n\n###### Parameters\n\n*   `tree` ([`Program`][program])\n    — tree to attach to\n*   `comments` (`Array<EstreeComment>`)\n    — list of comments\n\n###### Returns\n\nNothing (`undefined`).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`estree-util-attach-comments@^3`, compatible with Node.js 16.\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for\nways to get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/syntax-tree/estree-util-attach-comments/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/estree-util-attach-comments/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/estree-util-attach-comments.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/estree-util-attach-comments\n\n[downloads-badge]: https://img.shields.io/npm/dm/estree-util-attach-comments.svg\n\n[downloads]: https://www.npmjs.com/package/estree-util-attach-comments\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=estree-util-attach-comments\n\n[size]: https://bundlejs.com/?q=estree-util-attach-comments\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/syntax-tree/unist/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[health]: https://github.com/syntax-tree/.github\n\n[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md\n\n[support]: https://github.com/syntax-tree/.github/blob/main/support.md\n\n[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md\n\n[acorn]: https://github.com/acornjs/acorn\n\n[estree]: https://github.com/estree/estree\n\n[program]: https://github.com/estree/estree/blob/master/es5.md#programs\n\n[api-attach-comments]: #attachcommentstree-comments\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/syntax-tree/estree-util-attach-comments.git"
  },
  "bugs": {
    "url": "https://github.com/syntax-tree/estree-util-attach-comments/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "estree-util-attach-comments",
      "version": "1.0.0",
      "description": "Attach comments to estree nodes",
      "license": "MIT",
      "keywords": [
        "estree",
        "ast",
        "ecmascript",
        "javascript",
        "tree",
        "comment",
        "acorn",
        "espree",
        "recast"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wooorm/estree-util-attach-comments.git"
      },
      "bugs": {
        "url": "https://github.com/wooorm/estree-util-attach-comments/issues"
      },
      "funding": {
        "type": "github",
        "url": "https://github.com/sponsors/wooorm"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "dependencies": {},
      "devDependencies": {
        "acorn": "^8.0.0",
        "estree-walker": "^2.0.0",
        "nyc": "^15.0.0",
        "prettier": "^2.0.0",
        "recast": "^0.20.0",
        "remark-cli": "^9.0.0",
        "remark-preset-wooorm": "^8.0.0",
        "tape": "^5.0.0",
        "xo": "^0.36.0"
      },
      "scripts": {
        "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
        "test-api": "node test",
        "test-coverage": "nyc --reporter lcov tape test.js",
        "test": "npm run format && npm run test-coverage"
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true,
        "esnext": false,
        "rules": {
          "guard-for-in": "off",
          "max-depth": "off",
          "unicorn/explicit-length-check": "off",
          "unicorn/prefer-number-properties": "off"
        }
      },
      "nyc": {
        "check-coverage": true,
        "lines": 100,
        "functions": 100,
        "branches": 100
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "gitHead": "7c29c456f8c6dfe2ec4026a08bd870851b0c1c47",
      "homepage": "https://github.com/wooorm/estree-util-attach-comments#readme",
      "_id": "estree-util-attach-comments@1.0.0",
      "_nodeVersion": "15.1.0",
      "_npmVersion": "6.14.9",
      "dist": {
        "integrity": "sha512-sL7dTwFGqzelPlB56lRZY1CC/yDxCe365WQpxNd49ispL40Yv8Tv4SmteGbvZeFwShOOVKfMlo4jrVvwoaMosA==",
        "shasum": "51d280e458ce85dec0b813bd96d2ce98eae8a3f2",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/estree-util-attach-comments/-/estree-util-attach-comments-1.0.0.tgz",
        "fileCount": 4,
        "unpackedSize": 8463,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4M8XCRA9TVsSAnZWagAAciQP/AkAT8VsWJr7VdvIzJhw\nKFSR3sWau1VMhPfI/3xcPH0SwtxKv1oK8oxF1uNG4wgBVA2mjZeIJnalwkDh\nJpTKYnDtdJctkUfIyMiYeJ2niRiSufRrQjG2QCrla7YgDZb4MDf713tfqxV7\nvMx9G3X1wJ8Ld29/WAR7TL8GoMjxHYFC1hwrEexRmugYEp/uenQu56Nq6aiT\nGS+uMVxbywE5O/6G2oHfYPAsh67aIW7Nperd8T7LphcIus+PBCklff0Jy9SD\nhxOt8tAWBkLEicf8ivSWci1zwTp7o+anlgxI6MrVuHC7cbm2GsATM0oc+v29\no8exu/AcnrZxM5tCYw1X7oGELdGiit3ygbsxRsN8SdgSHC20DHfklrD/Tdl3\n3OoxgJpyojRcrRrbzvNhI/ZUNIPKGXeeJ5xf+NggvDW+phWIhU6bLDVisV67\nk5M9cFi4sv2sYZWFNCoc1N1lyYwfrTn1cXGwDx2I4yU0WjajyrETfLzpbiwT\n8O3Ix6Rb4fBjia1m8Pabv5Nf0Q0DSJsw6PHUbMHgQ17jYkSTz5xYr/MJQqJ2\nQ8KWarjdQuudylvRhC57gX15xVtWZP1mNyq9J1mUbYJAp2rtQoHfB8E/6VBN\n95vixyJuVfcsbo+dSQjkHw6X9cJ7KJY9VguiAu0OjAdzlJbySoQXSkJDKOnk\nsLq9\r\n=ltVV\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIEQumb/NWg8J8JyWEMjS5V2njrgThdeDWbgbvNIqMy51AiAYRluTzMt9Ls6Dlv6dBEh4OnptVuECs1xcuNkcWT+RjA=="
          }
        ]
      },
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/estree-util-attach-comments_1.0.0_1608568598618_0.3708979090056823"
      },
      "_hasShrinkwrap": false
    },
    "2.0.0": {
      "name": "estree-util-attach-comments",
      "version": "2.0.0",
      "description": "Attach comments to estree nodes",
      "license": "MIT",
      "keywords": [
        "estree",
        "ast",
        "ecmascript",
        "javascript",
        "tree",
        "comment",
        "acorn",
        "espree",
        "recast"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wooorm/estree-util-attach-comments.git"
      },
      "bugs": {
        "url": "https://github.com/wooorm/estree-util-attach-comments/issues"
      },
      "funding": {
        "type": "github",
        "url": "https://github.com/sponsors/wooorm"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "sideEffects": false,
      "type": "module",
      "main": "index.js",
      "types": "index.d.ts",
      "dependencies": {
        "@types/estree": "^0.0.46"
      },
      "devDependencies": {
        "@types/acorn": "^4.0.0",
        "@types/tape": "^4.0.0",
        "acorn": "^8.0.0",
        "c8": "^7.0.0",
        "estree-util-visit": "^1.0.0",
        "prettier": "^2.0.0",
        "recast": "^0.20.0",
        "remark-cli": "^9.0.0",
        "remark-preset-wooorm": "^8.0.0",
        "rimraf": "^3.0.0",
        "tape": "^5.0.0",
        "type-coverage": "^2.0.0",
        "typescript": "^4.0.0",
        "xo": "^0.38.0"
      },
      "scripts": {
        "prepack": "npm run build && npm run format",
        "build": "rimraf \"*.d.ts\" && tsc && type-coverage",
        "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
        "test-api": "node test.js",
        "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js",
        "test": "npm run build && npm run format && npm run test-coverage"
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true,
        "rules": {
          "no-var": "off",
          "prefer-arrow-callback": "off",
          "guard-for-in": "off",
          "max-depth": "off",
          "unicorn/explicit-length-check": "off",
          "unicorn/prefer-number-properties": "off"
        }
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "typeCoverage": {
        "atLeast": 100,
        "detail": true,
        "strict": true
      },
      "gitHead": "049f3dca66cb744ab8e38f06b7364a40b3124906",
      "homepage": "https://github.com/wooorm/estree-util-attach-comments#readme",
      "_id": "estree-util-attach-comments@2.0.0",
      "_nodeVersion": "15.11.0",
      "_npmVersion": "7.6.2",
      "dist": {
        "integrity": "sha512-kT9YVRvlt2ewPp9BazfIIgXMGsXOEpOm57bK8aa4F3eOEndMml2JAETjWaG3SZYHmC6axSNIzHGY718dYwIuVg==",
        "shasum": "2c06d484dfcf841b5946bcb84d5412cbcd544e22",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/estree-util-attach-comments/-/estree-util-attach-comments-2.0.0.tgz",
        "fileCount": 5,
        "unpackedSize": 11020,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUzBUCRA9TVsSAnZWagAAqogP/RKOJ1rjncrrmQ7fvw6p\njPc8ggnbPhwWC5j4CrpzB84MHGvQWLJIeXYQU2/kf1t2c2hHBKcFzk6DkEo9\n3Ue3zrqvD64K0+7gY90PyXI5AuP8HvLi53IiKehgmvls7uoZF/IPMDEFO3Kj\nCRwVeNjJpOqB/kKZdXJEwPnrPffdQMQQoy278B+Rv4snsyO2HMFOpRIvTSNl\nqXkHC8Gguv+tPLxgIQtpuQta4wb52sQrOYlgP+L7lui51E6hwTX3oyxYpwTP\nDlTtRYPHYuWKF2g69JDiKV7KXKdS/b/g68pdjDxuXBZ2rYY4YQ76peXe7IGr\nDS7bQALtkwfbdqaRw29qcE8FNRrAiEW6NHPP1FSZDFFWlLFmDHKpXvx/c0D7\nVIB4CqqluIFW5bEzoLk8BIOOqqLPF6X3r1yinI4Thz/eqeo+0YIsT5vfi6oi\ndpS0w+IzQ4s6ri25CiUJb9vHTRnvDtttbeb9HOpAHDCMgvqozKI57soOqOz3\nXC4I4oBO/JQ33Pfl0tli8kYxAlrxPuh3Xo+ECUA/JPzbEslvTXeReyvHgare\nah2HHe/ITF1XqUfq3eCjchWQryxlW+lWkvKmlWVk6MJZuz5JLROoVwlkHwPo\n6CuztRGPhx7TtNGIQWkcj6mMH4MuGHUzfMaaGktwvnB3EzHCY6erUXg2CMee\n85to\r\n=u7/p\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHbaUu2/xmUfvBJqTsO7HWGQZF0iWGT3y5r+eH4KWDFyAiEAzYviVoBjhxuyEO707uaIU2XCPvBGgBzefI66VHii9Nc="
          }
        ]
      },
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/estree-util-attach-comments_2.0.0_1616064595579_0.7025112243104654"
      },
      "_hasShrinkwrap": false
    },
    "2.0.1": {
      "name": "estree-util-attach-comments",
      "version": "2.0.1",
      "description": "Attach comments to estree nodes",
      "license": "MIT",
      "keywords": [
        "estree",
        "ast",
        "ecmascript",
        "javascript",
        "tree",
        "comment",
        "acorn",
        "espree",
        "recast"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/syntax-tree/estree-util-attach-comments.git"
      },
      "bugs": {
        "url": "https://github.com/syntax-tree/estree-util-attach-comments/issues"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/unified"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "sideEffects": false,
      "type": "module",
      "main": "index.js",
      "types": "index.d.ts",
      "dependencies": {
        "@types/estree": "^0.0.51"
      },
      "devDependencies": {
        "@types/acorn": "^4.0.0",
        "@types/tape": "^4.0.0",
        "acorn": "^8.0.0",
        "c8": "^7.0.0",
        "estree-util-visit": "^1.0.0",
        "prettier": "^2.0.0",
        "recast": "^0.21.0",
        "remark-cli": "^10.0.0",
        "remark-preset-wooorm": "^9.0.0",
        "rimraf": "^3.0.0",
        "tape": "^5.0.0",
        "type-coverage": "^2.0.0",
        "typescript": "^4.0.0",
        "xo": "^0.50.0"
      },
      "scripts": {
        "prepack": "npm run build && npm run format",
        "build": "rimraf \"*.d.ts\" && tsc && type-coverage",
        "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
        "test-api": "node test.js",
        "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js",
        "test": "npm run build && npm run format && npm run test-coverage"
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true,
        "rules": {
          "max-depth": "off"
        }
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "typeCoverage": {
        "atLeast": 100,
        "detail": true,
        "strict": true
      },
      "gitHead": "5d7c7cf2df8b12db643f16b7a03d86ff8638ac59",
      "homepage": "https://github.com/syntax-tree/estree-util-attach-comments#readme",
      "_id": "estree-util-attach-comments@2.0.1",
      "_nodeVersion": "18.2.0",
      "_npmVersion": "8.9.0",
      "dist": {
        "integrity": "sha512-1wTBNndwMIsnvnuxjFIaYQz0M7PsCvcgP0YD7/dU8xWh1FuHk+O6pYpT4sLa5THY/CywJvdIdgw4uhozujga/g==",
        "shasum": "57dd0ae170ce2a6d9170ad69e6a45c87bcb52d81",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/estree-util-attach-comments/-/estree-util-attach-comments-2.0.1.tgz",
        "fileCount": 5,
        "unpackedSize": 13356,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQD3BYGPP7y+40ZWzPOFKPJ5MpwVlKVo5c4m5SeJvfcH/wIhAN7sf1kG5Q+vbsr9dPknFbaTWNp5GpBk2lPiY4cCjN0E"
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJipb4tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6dw/+MzM/qLT2RDmtot80wF/+SzsMrO6DJn4gDWXGWDh7vDrc90ST\r\nPWaP8dq0jAcvR1L9uI08VUWvICsfnZrWVVuKwXXQw+dCHW/Q+QfKO5UwxgBz\r\nP1QcQzK2NmTMpck7HsHVkmHw0EoQMheA6XWiJHi8IM3ViqZymYEdq0s38+ps\r\nxajgi0nd6llSr/WYlXvbrn+f05XQc/oHuNStKmddJDFyc6OUxTuhlS57iuvH\r\nm7Nvf7k9XZKtjqFWTvYTkMxv4Rn1wLS70Il0P18C3VxEYQVr8y5wZ7dtDnK7\r\nHoaiatrfaQVwJHKCnz6TmEUpCG0bDgWmBeg+UAMEzn/AT+giCZrMLNmTR35R\r\nAbfWzS6bQu2mxUhxWUD1qcRHSU4qhplTIssAIOdV3H7ahB5Rjvk9JjNvyUL5\r\nBS5SryUWeFF3a4Px3EkQ6MosRuIJ0s8P794uxIGmkvq2yOiI59n4WGLY50cy\r\nsGC6ybNqK0UwapCkP19MXxy/we4u06rJz7zUNPZfZmNSbEghVtHc6XeVxQj4\r\nlmjDgrXTQzjN8E836d2+zGZtBSU5ybKWXbcV6BWH96iVznnR942McFeXsrES\r\nw8hD3k+EwZHWXPwrhYUK5+VeKWjrFvKDFQDDPjAU5D/Rz9myJMsZ4TnQ8Gq3\r\n3IAHEzWRy7L0E1xQAw7XjilPbZdZXXsaqeI=\r\n=oU+S\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        },
        {
          "name": "kmck",
          "email": "keith@mcknig.ht"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/estree-util-attach-comments_2.0.1_1655029293318_0.8609612842288616"
      },
      "_hasShrinkwrap": false
    },
    "2.1.0": {
      "name": "estree-util-attach-comments",
      "version": "2.1.0",
      "description": "Attach comments to estree nodes",
      "license": "MIT",
      "keywords": [
        "estree",
        "ast",
        "ecmascript",
        "javascript",
        "tree",
        "comment",
        "acorn",
        "espree",
        "recast"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/syntax-tree/estree-util-attach-comments.git"
      },
      "bugs": {
        "url": "https://github.com/syntax-tree/estree-util-attach-comments/issues"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/unified"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "sideEffects": false,
      "type": "module",
      "main": "index.js",
      "types": "index.d.ts",
      "dependencies": {
        "@types/estree": "^1.0.0"
      },
      "devDependencies": {
        "@types/acorn": "^4.0.0",
        "@types/tape": "^4.0.0",
        "acorn": "^8.0.0",
        "c8": "^7.0.0",
        "estree-util-visit": "^1.0.0",
        "prettier": "^2.0.0",
        "recast": "^0.21.0",
        "remark-cli": "^11.0.0",
        "remark-preset-wooorm": "^9.0.0",
        "rimraf": "^3.0.0",
        "tape": "^5.0.0",
        "type-coverage": "^2.0.0",
        "typescript": "^4.0.0",
        "xo": "^0.51.0"
      },
      "scripts": {
        "prepack": "npm run build && npm run format",
        "build": "rimraf \"*.d.ts\" && tsc && type-coverage",
        "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
        "test-api": "node test.js",
        "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js",
        "test": "npm run build && npm run format && npm run test-coverage"
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true,
        "rules": {
          "max-depth": "off"
        }
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "typeCoverage": {
        "atLeast": 100,
        "detail": true,
        "strict": true
      },
      "gitHead": "c287bb5580c9a0898861efd29e70421587eea8ac",
      "homepage": "https://github.com/syntax-tree/estree-util-attach-comments#readme",
      "_id": "estree-util-attach-comments@2.1.0",
      "_nodeVersion": "18.2.0",
      "_npmVersion": "8.13.2",
      "dist": {
        "integrity": "sha512-rJz6I4L0GaXYtHpoMScgDIwM0/Vwbu5shbMeER596rB2D1EWF6+Gj0e0UKzJPZrpoOc87+Q2kgVFHfjAymIqmw==",
        "shasum": "47d69900588bcbc6bf58c3798803ec5f1f3008de",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/estree-util-attach-comments/-/estree-util-attach-comments-2.1.0.tgz",
        "fileCount": 5,
        "unpackedSize": 13355,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIBxpeH6sDH+al11JuhwisdxwFbT5VItSlUrVZxTsCUbqAiEAnpb/1V3FVYDRuVK+SqARnKnq54Gpst0YsdlnkArIVv0="
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3R28ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrk+Q/9GnJNzOzbwG4+Iaf6dIXTBEOyNrA7Gqj/b4wNQ2BiD/osDXog\r\n9pHmL97iOeV3CkMLlyArgGL8RFu0Oxb++BRVcsIJ0PIKAX3rfzIp8gQgrbH7\r\nFftIfiULhUQrU2rXJmQNSuTpXBoZxRxGT4u0ZZXHp+7IT3a1RZ3EwGIhBLo2\r\nPdQwmZ/6FXBnooqldJRFJ8jYrIYUs4h4V/X70adcwRzGBXCzaRh7KnLxZBpg\r\nnBfURWw9m3kzhgDfAuySoz8Oj78sLP6zQB6rURWtYLj3NrsM3WvRiWmTqpCO\r\nBfGr8mdlpHkpAf0Cu+RvZasEL9Xe18/uKP89vDvfIRIJBq+zZLTpm19mQzhX\r\nD7FSDejvg8Z98GWky9X5rji04OlMZICNA15kdnlLFooL0R3Xla9pBDASLCq/\r\nmg73VlSQjej+l6rwJRSHBVQQj9NJ+jG5HX5pes9bfAFN4b8EfDmCOxa8MjRF\r\nvBCHr3ML6TRr/0z0sKQMGM9GkDpgWmAq7PgjIYjp2wcHwMOWJ9xK1JT3olaH\r\nCzVCNhUh9plJXjd19xJnKFJDAbBjlzsDgoJa59sqeCF7FXP/XZoP9jRu0mv3\r\noELLW+Yt70rg8E8i+qAViMLBj8+5HcmIrWW4ns/N0tcF4/09OwMx2rUGwkF2\r\nu16IERv1kQuHCP5oWLKgyOa14thbPvhk628=\r\n=h8jR\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        },
        {
          "name": "kmck",
          "email": "keith@mcknig.ht"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/estree-util-attach-comments_2.1.0_1658658235999_0.33809256030890045"
      },
      "_hasShrinkwrap": false
    },
    "2.1.1": {
      "name": "estree-util-attach-comments",
      "version": "2.1.1",
      "description": "Attach comments to estree nodes",
      "license": "MIT",
      "keywords": [
        "estree",
        "ast",
        "ecmascript",
        "javascript",
        "tree",
        "comment",
        "acorn",
        "espree",
        "recast"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/syntax-tree/estree-util-attach-comments.git"
      },
      "bugs": {
        "url": "https://github.com/syntax-tree/estree-util-attach-comments/issues"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/unified"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "sideEffects": false,
      "type": "module",
      "main": "index.js",
      "types": "index.d.ts",
      "dependencies": {
        "@types/estree": "^1.0.0"
      },
      "devDependencies": {
        "@types/acorn": "^4.0.0",
        "@types/node": "^18.0.0",
        "acorn": "^8.0.0",
        "c8": "^7.0.0",
        "estree-util-visit": "^1.0.0",
        "prettier": "^2.0.0",
        "recast": "^0.22.0",
        "remark-cli": "^11.0.0",
        "remark-preset-wooorm": "^9.0.0",
        "type-coverage": "^2.0.0",
        "typescript": "^4.0.0",
        "xo": "^0.53.0"
      },
      "scripts": {
        "prepack": "npm run build && npm run format",
        "build": "tsc --build --clean && tsc --build && type-coverage",
        "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
        "test-api": "node --conditions development test.js",
        "test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
        "test": "npm run build && npm run format && npm run test-coverage"
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true,
        "rules": {
          "max-depth": "off"
        }
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "typeCoverage": {
        "atLeast": 100,
        "detail": true,
        "strict": true
      },
      "gitHead": "d8fd933bc1ce4f8c7d0e8661a3ad1ffc62c2ed14",
      "homepage": "https://github.com/syntax-tree/estree-util-attach-comments#readme",
      "_id": "estree-util-attach-comments@2.1.1",
      "_nodeVersion": "19.3.0",
      "_npmVersion": "9.2.0",
      "dist": {
        "integrity": "sha512-+5Ba/xGGS6mnwFbXIuQiDPTbuTxuMCooq3arVv7gPZtYpjp+VXH/NkHAP35OOefPhNG/UGqU3vt/LTABwcHX0w==",
        "shasum": "ee44f4ff6890ee7dfb3237ac7810154c94c63f84",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/estree-util-attach-comments/-/estree-util-attach-comments-2.1.1.tgz",
        "fileCount": 7,
        "unpackedSize": 16174,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIA8wjOCeKj1C4iU5ZdgL6YTK+pGcx9iPoiwG/nm+OMvlAiEAmC+oa8HAqtl/fZgXacHEOvBGkQFkfCMjHDk7AfFK2Gk="
          }
        ],
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzBS4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1ihAAocl6peDOesnvmUMPkD4olDg3DhbqkYZNg+ym0o8hFGbdPT5o\r\nCZOa6W6BrKHjJ6OWqNTLGOHXwH2nHYdGJzRGhZmyn4WQfQ4VHwWdN8/Jpp0Z\r\nN7j00Hp9tKAy56k8EAaF1KpMMtzKEnRpks/9D8a/MvpYYv4h5mnVU3TtDWoK\r\n0jNYIAI0LkQ8ljUA0+Q6I9rYUvLiMVTIXjWIc/uSI2htAKeUZeCMu/3hVyRY\r\nZodJYRA2bUWPqwZ+EuNmKbMXKTPxaBZI7prH4Cit7in1nIrfDyAvzDsFLKT4\r\n8U5GLIcG30DEbjyYrytrwidI5xf8IMI8DNr+7CWesWAtQaGBZrC40wd7JUYW\r\n1LYfGE+6LW/t1i55WsVb5yGdFFb6wug4iULpGL+Xu5SxQ3Pbhr5rjgZtub6T\r\nRUpYNvPjgfmo+Xc7w5q+/TfZJ+k+tMYCbTPNZIES5GPIt1/QaYv1hkks33GD\r\nHEEzomamqCC1NlWHuNgADaNz2NrW87tMadR73G+ZOXxVESWFNi/sXcppfTeO\r\n1B/2wlAZqmZFzhu3gHObDiqCehfCmtWDN/dUrmJmyMEcPQyySrPrQxVVg0HV\r\nRmgmoDf3vrmHHKFJS1MksHTdnHZDS6niw5vGFZkW7DUtXWxL73ErCJkKv7sQ\r\nuCKTLqRK3giavMOLyEd99ctYmNzZzb9EaWY=\r\n=xdp1\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        },
        {
          "name": "kmck",
          "email": "keith@mcknig.ht"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/estree-util-attach-comments_2.1.1_1674319032278_0.6172734642042674"
      },
      "_hasShrinkwrap": false
    },
    "3.0.0": {
      "name": "estree-util-attach-comments",
      "version": "3.0.0",
      "description": "Attach comments to estree nodes",
      "license": "MIT",
      "keywords": [
        "estree",
        "ast",
        "ecmascript",
        "javascript",
        "tree",
        "comment",
        "acorn",
        "espree",
        "recast"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/syntax-tree/estree-util-attach-comments.git"
      },
      "bugs": {
        "url": "https://github.com/syntax-tree/estree-util-attach-comments/issues"
      },
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/unified"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "sideEffects": false,
      "type": "module",
      "exports": "./index.js",
      "dependencies": {
        "@types/estree": "^1.0.0"
      },
      "devDependencies": {
        "@types/acorn": "^4.0.0",
        "@types/node": "^20.0.0",
        "acorn": "^8.0.0",
        "c8": "^8.0.0",
        "estree-util-visit": "^2.0.0",
        "prettier": "^3.0.0",
        "recast": "^0.23.0",
        "remark-cli": "^11.0.0",
        "remark-preset-wooorm": "^9.0.0",
        "type-coverage": "^2.0.0",
        "typescript": "^5.0.0",
        "xo": "^0.55.0"
      },
      "scripts": {
        "prepack": "npm run build && npm run format",
        "build": "tsc --build --clean && tsc --build && type-coverage",
        "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
        "test-api": "node --conditions development test.js",
        "test-coverage": "c8 --100 --reporter lcov npm run test-api",
        "test": "npm run build && npm run format && npm run test-coverage"
      },
      "prettier": {
        "bracketSpacing": false,
        "semi": false,
        "singleQuote": true,
        "tabWidth": 2,
        "trailingComma": "none",
        "useTabs": false
      },
      "remarkConfig": {
        "plugins": [
          "remark-preset-wooorm"
        ]
      },
      "typeCoverage": {
        "atLeast": 100,
        "detail": true,
        "ignoreCatch": true,
        "strict": true
      },
      "xo": {
        "prettier": true,
        "rules": {
          "max-depth": "off"
        }
      },
      "gitHead": "9f4ce5e9d87fa215d9ad583445fbf607f70ae8d5",
      "types": "./index.d.ts",
      "homepage": "https://github.com/syntax-tree/estree-util-attach-comments#readme",
      "_id": "estree-util-attach-comments@3.0.0",
      "_nodeVersion": "20.0.0",
      "_npmVersion": "9.7.2",
      "dist": {
        "integrity": "sha512-cKUwm/HUcTDsYh/9FgnuFqpfquUbwIqwKM26BVCGDPVgvaCl/nDCCjUfiLlx6lsEZ3Z4RFxNbOQ60pkaEwFxGw==",
        "shasum": "344bde6a64c8a31d15231e5ee9e297566a691c2d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/estree-util-attach-comments/-/estree-util-attach-comments-3.0.0.tgz",
        "fileCount": 7,
        "unpackedSize": 16463,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIC03Go4YPQu8G32wy3/S1bUmVIeZpqy8Ldm8UOE+cEFHAiEAyPAuFe6dwIyLfArWZlpMQZg2r8gf4ceTvWoC5i47uOY="
          }
        ]
      },
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        },
        {
          "name": "kmck",
          "email": "keith@mcknig.ht"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/estree-util-attach-comments_3.0.0_1690794718149_0.7250992808709034"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "estree-util-attach-comments",
  "time": {
    "created": "2020-12-21T16:36:38.617Z",
    "1.0.0": "2020-12-21T16:36:38.811Z",
    "modified": "2026-06-30T22:29:10.312Z",
    "2.0.0": "2021-03-18T10:49:55.686Z",
    "2.0.1": "2022-06-12T10:21:33.499Z",
    "2.1.0": "2022-07-24T10:23:56.151Z",
    "2.1.1": "2023-01-21T16:37:12.414Z",
    "3.0.0": "2023-07-31T09:11:58.291Z"
  },
  "contributors": [
    {
      "name": "Titus Wormer",
      "email": "tituswormer@gmail.com",
      "url": "https://wooorm.com"
    }
  ],
  "readmeFilename": "readme.md",
  "homepage": "https://github.com/syntax-tree/estree-util-attach-comments#readme"
}