{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils-json":"^1.0.13","@hint/utils-network":"^1.0.12","@hint/utils-string":"^1.0.9","@hint/utils-types":"^1.1.4"},"description":"webhint parser for web app manifest files","devDependencies":{"@types/node":"^15.6.1","@types/sinon":"^10.0.4","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.1","ava":"^3.15.0","copyfiles":"^2.4.1","eslint":"^7.29.0","eslint-plugin-import":"^2.23.4","eslint-plugin-markdown":"^2.2.1","eventemitter2":"^6.4.4","npm-run-all":"^4.1.5","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.2.4","typescript":"^4.3.5"},"homepage":"https://webhint.io/","keywords":["manifest","manifest-parser","webhint","webhint-parser"],"license":"Apache-2.0","main":"dist/src/parser.js","name":"@hint/parser-manifest","nyc":{"extends":"../../.nycrc"},"peerDependencies":{"hint":"^6.0.0"},"repository":{"directory":"packages/parser-manifest","type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"npm-run-all build:*","build:assets":"copyfiles \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","build-release":"npm run clean && npm run build:assets && tsc --inlineSourceMap false --removeComments true","clean":"rimraf dist","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext .js,.md,.ts --ignore-path ../../.eslintignore","lint:dependencies":"node ../../scripts/lint-dependencies.js","lint:md":"node ../../scripts/lint-markdown.js","test":"npm run lint && npm run build && npm run test-only","test-only":"nyc ava","test-release":"npm run lint && npm run build-release && ava","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:assets":"npm run build:assets -- -w --no-initial","watch:test":"ava --watch","watch:ts":"npm run build:ts -- --watch"},"version":"2.3.4","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/parser-manifest@2.3.4","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-rdzBdFP64aaDp3/pY82q1QXswxZbsCtzaKkIDE8TTRjrcThZ7wTiV1s02sBnF1Wqoexnz0uECnuWqdsr4qitbg==","shasum":"f430f85a4784e85c2a01070f40285c7d3a3a9229","tarball":"http://registry-npm.ywwl.com/@hint/parser-manifest/download/@hint/parser-manifest-2.3.4.tgz","fileCount":14,"unpackedSize":106550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICY0pY+SUfBBIXIfl9SWRURwBpkd+P6xzWR9W2ynsgJiAiEAmrrTvj3aAEdi/8pgtgsSauL4epCCqJI7d/j0xqQR7Ac="}],"size":23688,"noattachment":false,"key":"/@hint/parser-manifest/-/@hint/parser-manifest-2.3.4.tgz"},"_npmUser":{"name":"antross","email":"antross@gmail.com"},"directories":{},"maintainers":[{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"},{"name":"johnatms","email":"John.Emau@microsoft.com"},{"name":"sarvaje","email":"jdgarcia@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parser-manifest_2.3.4_1635537440276_0.936819727063253"},"_hasShrinkwrap":false,"readme":"# Manifest (`@hint/parser-manifest`)\n\nThe `manifest` parser detects if a [web app manifest file][manifest] was\nspecified, and if so, it will try to fetch it, parse and check if its\ncontent is valid.\n\nThis package is installed automatically by webhint:\n\n```bash\nnpm install hint --save-dev\n```\n\nTo use it, activate it via the [`.hintrc`][hintrc] configuration file:\n\n```json\n{\n    \"connector\": {...},\n    \"formatters\": [...],\n    \"hints\": {\n        ...\n    },\n    \"parsers\": [\"manifest\"],\n    ...\n}\n```\n\n**Note**: The recommended way of running webhint is as a `devDependency` of\nyour project.\n\n## Events emitted\n\nThe following events are emitted by the `parser`:\n\n### `fetch::start::manifest`\n\nEvent is of type [`FetchStart`][fetchstart] and is emitted when the\nparser starts downloading the web app manifest file.\n\n### `fetch::end::manifest`\n\nEvent is of type [`FetchEnd`][fetchend] and is emitted when the parser\nsuccessfully downloaded the web app manifest file.\n\n### `fetch::error::manifest`\n\nEvent is of type [`FetchError`][fetcherror] and is emitted when the\nparser encounters a problem trying to fetch the web app manifest file.\n\n### `parse::end::manifest`\n\nEvent is emitted when the parser successfully completed parsing\nthe web app manifest file.\n\n**Format:**\n\n```ts\nexport type ManifestParsed = FetchEnd & {\n    /** The content of manifest parsed */\n    parsedContent: Manifest;\n};\n```\n\n### `parse::error::manifest::json`\n\nEvent is emitted when the content of the web app manifest file\nis not valid JSON.\n\n**Format:**\n\n```ts\nexport type ManifestInvalidJSON = ErrorEvent & {\n    /** The parse JSON error. */\n    error: Error;\n};\n```\n\n### `parse::error::manifest::schema`\n\nEvent is emitted when the content of the web app manifest file\nis not valid according to the schema.\n\n**Format:**\n\n```ts\nexport type ManifestInvalidSchema = ErrorEvent & {\n    /** The parse errors as returned by ajv. */\n    errors: ajv.ErrorObject[];\n    /** The errors in a more human readable format. */\n    prettifiedErrors: string[];\n};\n```\n\n## Types\n\nIf you need to import any type or enum defined in this parser, you just\nneed to import them as follows:\n\n```ts\nimport { TypeOrEnumYouWantToUse } from '@hint/parser-manifest';\n```\n\n<!-- Link labels: -->\n\n[fetchend]: https://webhint.io/docs/contributor-guide/getting-started/events/#fetchend\n[fetcherror]: https://webhint.io/docs/contributor-guide/getting-started/events/#fetcherror\n[fetchstart]: https://webhint.io/docs/contributor-guide/getting-started/events/#fetchstart\n[hintrc]: https://webhint.io/docs/user-guide/configuring-webhint/summary/\n[manifest]: https://www.w3.org/TR/appmanifest/\n","publish_time":1635537440404,"_cnpm_publish_time":1635537440404,"dist-tags":{"latest":"2.3.20"}}