{"name":"unist-util-generated","version":"1.1.3","description":"Check if a Unist node is generated","license":"MIT","keywords":["unist","position","location","generated","util","utility"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-generated.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-generated/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"devDependencies":{"browserify":"^16.0.0","nyc":"^13.0.0","prettier":"^1.12.1","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.5.1","tinyify":"^2.4.3","xo":"^0.23.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify . -s unistUtilGenerated > unist-util-generated.js","build-mangle":"browserify . -s unistUtilGenerated -p tinyify > unist-util-generated.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"guard-for-in":"off","no-var":"off","prefer-arrow-callback":"off"},"ignores":["unist-util-generated.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"6d0ea02a5db9d3ffee30c1eed754a0dbe0e98173","homepage":"https://github.com/syntax-tree/unist-util-generated#readme","_id":"unist-util-generated@1.1.3","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"integrity":"sha512-qlPeDqnQnd84KIqwphzOR+l02cxjDzvEYEBl84EjmKRrX4eUmjyAo8xJv1SCDhJqNjyHRnBMZWNKAiBtXE6hBg==","shasum":"ca650470aef2fbcc5fe54c465bc26b41ca109e2b","tarball":"http://registry-npm.ywwl.com/unist-util-generated/download/unist-util-generated-1.1.3.tgz","fileCount":4,"unpackedSize":5666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2syrCRA9TVsSAnZWagAA8cwQAI1xnRupsZvJxDIo6kHL\nXnjLJjIllRQkLw+AyhcMiPNoj1VCfflnau8l88luI6xxXXIRmUF0cu4wEEbB\nLz7kUM1iLU4eTjWkyswnPBSxB3CJpP8qihiaJRy8RlfG3z1N/HALA7QnRYoa\nFK0gDTuGPL+mig2XVRQWWMTN75eJqOeB+/RO3aSTGPU/j6ElwsMbassEt15k\nmzCjZdWe9tgEPsMb+giDgnPlKFsw/RojQV8nRL9rZE11keMMvkR6bzZUsa6j\nc/QZGUNNizDlJk9iJU2Sf+867wxrGXQ05ZpCb9BW0z2hBTv8VOc9S6RuEV+U\n/cqui/mGSfCNXqYiZj7OHLK+/4wRfvVsZrmGn0KWghKFHV/hN6j9x/OIOQ5t\nSC+CcUg/uDO6WycplTzykhZpk/7RpYet9WhjoJHYBB2V2DOnymDKcQ4LFcvz\nYSAI7tn+rblauvAkSX6iksxdUqyweftZJ+Alndl5FANayIPpiL/EoqBBnY0T\nfzCctFtjvZm6ivnl/ohvq7Nsjj2zrYycLla31e+Q8PKx+vg9plq69EqeHTNa\nFzfNgS/Przdvk0A9UlTVaoXsQQJFV2v1Yf3yAJ2k/DKdHx0IKT4yhmNuESYM\nJkfA2cQoygyaefeeQlYH/835kcP+sXPnw4crhQjnHqO5A1Ob2zZJpt7eOoDS\nur1r\r\n=bc/F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3ikljBch3UPUpISP7APGQpUwdT0EMqPHuNTD5kb0kdAiEAoO30+f0U5nV0kN7ja6mNnElplBMDvow41hEqhGK3px4="}],"size":2555,"noattachment":false,"key":"/unist-util-generated/-/unist-util-generated-1.1.3.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-generated_1.1.3_1541065899018_0.21241757428939323"},"_hasShrinkwrap":false,"readme":"# unist-util-generated\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[unist][] utility to check if a node is generated.\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    *   [`generated(node)`](#generatednode)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis utility can be used to check if a node is said to be\n[generated][generated-term].\n\n## When should I use this?\n\nYou can use this utility to check is generated.\nGenerated nodes were not in the source of the original file, and thus not\nauthored by a human.\nThis info can then be used to not emit lint messages for generated content.\n\nYou might also find the utility [`unist-util-position`][unist-util-position]\nuseful to get clean positional info.\nTo display positional info to users, use\n[`unist-util-stringify-position`][unist-util-stringify-position].\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install unist-util-generated\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {generated} from 'https://esm.sh/unist-util-generated@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {generated} from 'https://esm.sh/unist-util-generated@3?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {generated} from 'unist-util-generated'\n\ngenerated({}) // => true\n\ngenerated({position: {start: {}, end: {}}}) // => true\n\ngenerated({\n  position: {start: {line: 1, column: 1}, end: {line: 1, column: 2}}\n}) // => false\n```\n\n## API\n\nThis package exports the identifier [`generated`][generated].\nThere is no default export.\n\n### `generated(node)`\n\nCheck if `node` is generated.\n\n###### Parameters\n\n*   `node` ([`Node`][node])\n    — node to check\n\n###### Returns\n\nWhether `node` is generated (does not have positional info) (`boolean`).\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, `unist-util-generated@^2`,\ncompatible with Node.js 16.\n\n## Related\n\n*   [`unist-util-position`](https://github.com/syntax-tree/unist-util-position)\n    — get the position of nodes\n*   [`unist-util-source`](https://github.com/syntax-tree/unist-util-source)\n    — get the source of a node or position\n*   [`unist-util-remove-position`](https://github.com/syntax-tree/unist-util-remove-position)\n    — remove `position`s\n*   [`unist-util-stringify-position`](https://github.com/syntax-tree/unist-util-stringify-position)\n    — serialize positional info\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<!-- Definition -->\n\n[build-badge]: https://github.com/syntax-tree/unist-util-generated/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/unist-util-generated/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-generated.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/unist-util-generated\n\n[downloads-badge]: https://img.shields.io/npm/dm/unist-util-generated.svg\n\n[downloads]: https://www.npmjs.com/package/unist-util-generated\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-generated\n\n[size]: https://bundlejs.com/?q=unist-util-generated\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[unist]: https://github.com/syntax-tree/unist\n\n[node]: https://github.com/syntax-tree/unist#node\n\n[generated-term]: https://github.com/syntax-tree/unist#generated\n\n[unist-util-position]: https://github.com/syntax-tree/unist-util-position\n\n[unist-util-stringify-position]: https://github.com/syntax-tree/unist-util-stringify-position\n\n[generated]: #generatednode\n","publish_time":1541065899188,"_cnpm_publish_time":1541065899188,"dist-tags":{"latest":"3.0.0"}}