{"_id":"estree-util-attach-comments","_rev":"3276246","name":"estree-util-attach-comments","description":"Attach comments to estree nodes","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2024-03-21T10:27:54.000Z","created":"2020-12-21T16:36:38.811Z","3.0.0":"2023-07-31T09:11:58.291Z","2.1.1":"2023-01-21T16:37:12.414Z","2.1.0":"2022-07-24T10:23:56.151Z","2.0.1":"2022-06-12T10:21:33.499Z","2.0.0":"2021-03-18T10:49:55.686Z","1.0.0":"2020-12-21T16:36:38.811Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/syntax-tree/estree-util-attach-comments.git"},"versions":{"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":{"shasum":"344bde6a64c8a31d15231e5ee9e297566a691c2d","size":5768,"noattachment":false,"key":"/estree-util-attach-comments/-/estree-util-attach-comments-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/estree-util-attach-comments/download/estree-util-attach-comments-3.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/estree-util-attach-comments_3.0.0_1690794718149_0.7250992808709034"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-31T09:11:58.291Z","publish_time":1690794718291,"_source_registry_name":"default","_cnpm_publish_time":1690794718291},"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":{"shasum":"ee44f4ff6890ee7dfb3237ac7810154c94c63f84","size":5658,"noattachment":false,"key":"/estree-util-attach-comments/-/estree-util-attach-comments-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/estree-util-attach-comments/download/estree-util-attach-comments-2.1.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/estree-util-attach-comments_2.1.1_1674319032278_0.6172734642042674"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-21T16:37:12.414Z","publish_time":1674319032414,"_cnpm_publish_time":1674319032414},"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":{"shasum":"47d69900588bcbc6bf58c3798803ec5f1f3008de","size":5184,"noattachment":false,"key":"/estree-util-attach-comments/-/estree-util-attach-comments-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/estree-util-attach-comments/download/estree-util-attach-comments-2.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/estree-util-attach-comments_2.1.0_1658658235999_0.33809256030890045"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-24T10:24:00.121Z","publish_time":1658658236151,"_cnpm_publish_time":1658658236151},"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":{"shasum":"57dd0ae170ce2a6d9170ad69e6a45c87bcb52d81","size":5186,"noattachment":false,"key":"/estree-util-attach-comments/-/estree-util-attach-comments-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/estree-util-attach-comments/download/estree-util-attach-comments-2.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/estree-util-attach-comments_2.0.1_1655029293318_0.8609612842288616"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-12T11:11:34.164Z","publish_time":1655029293499,"_cnpm_publish_time":1655029293499},"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":{"shasum":"2c06d484dfcf841b5946bcb84d5412cbcd544e22","size":4279,"noattachment":false,"key":"/estree-util-attach-comments/-/estree-util-attach-comments-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/estree-util-attach-comments/download/estree-util-attach-comments-2.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"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,"publish_time":1616064595686,"_cnpm_publish_time":1616064595686},"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":{"shasum":"51d280e458ce85dec0b813bd96d2ce98eae8a3f2","size":3646,"noattachment":false,"key":"/estree-util-attach-comments/-/estree-util-attach-comments-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/estree-util-attach-comments/download/estree-util-attach-comments-1.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"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,"publish_time":1608568598811,"_cnpm_publish_time":1608568598811}},"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","_attachments":{},"homepage":"https://github.com/syntax-tree/estree-util-attach-comments#readme","bugs":{"url":"https://github.com/syntax-tree/estree-util-attach-comments/issues"},"license":"MIT"}