{"id":15010496,"url":"https://github.com/nodejs/package-compliant","last_synced_at":"2025-10-04T01:31:23.748Z","repository":{"id":44485787,"uuid":"172790542","full_name":"nodejs/package-compliant","owner":"nodejs","description":"Validate the `support` property in the `package.json`","archived":true,"fork":false,"pushed_at":"2021-05-31T15:20:04.000Z","size":24,"stargazers_count":10,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-29T16:13:24.603Z","etag":null,"topics":["package","package-json","validation"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-26T21:05:45.000Z","updated_at":"2023-03-18T01:28:14.000Z","dependencies_parsed_at":"2022-09-05T14:10:43.733Z","dependency_job_id":null,"html_url":"https://github.com/nodejs/package-compliant","commit_stats":null,"previous_names":["eomm/package-compliant"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fpackage-compliant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fpackage-compliant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fpackage-compliant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fpackage-compliant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodejs","download_url":"https://codeload.github.com/nodejs/package-compliant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234886135,"owners_count":18901858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["package","package-json","validation"],"created_at":"2024-09-24T19:34:31.046Z","updated_at":"2025-10-04T01:31:23.438Z","avatar_url":"https://github.com/nodejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"THIS REPO IS ARHIVED.\n\n# package-compliant\n\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Build Status](https://travis-ci.com/Eomm/package-compliant.svg?branch=master)](https://travis-ci.com/Eomm/package-compliant)\n\nValidate the `support` property in the `package.json` following the [package-maintenance guidelines][validation]!\n\n\n⚠ This project has been deprecated. Use [`@pkgjs/support`](https://github.com/pkgjs/support) instead.\n\n## Install\n\nYou can use this package as a CLI or as a Module if you need to use the core function of this module.\n\n```\n// As a CLI\nnpm i package-compliant -g\n\n// As a module\nnpm i package-compliant\n```\n\n## Commands\n\nTo run the commands you can execute:\n\n```sh\npackage-compliant validate --file ./package-custom.json\n// or simply in a project folder\npackage-compliant validate\n\n// npx is supported of course\nnpx package-compliant validate\n```\n\n### Validate\n\n```sh\npackage-compliant validate [--file|-f \u003cfile path\u003e]\n```\n\nValidation applied:\n\n+ ✔ Validate `support` property of the JSON `--file` if it exists. The default `--file` is the `package.json` in the directory where the command is executed.\n\n\n## Module\n\nTo use this package as a module you need to:\n\n```js\nconst packageCompliant = require('package-compliant')\nconst aPackageJson = require('./package.json')\n\ntry {\n  packageCompliant.validateSupportField(aPackageJson.support)\n  // the package is valid\n} catch (err) {\n  // the package has some errors\n}\n\n// or you can use callback:\npackageCompliant.validateSupportField(aPackageJson.support, (err, valid) =\u003e {\n  if (err) {\n    // there are some errors!!\n  }\n})\n```\n\n\n## Contributions\n\nRead the [CONTRIBUTING](./CONTRIBUTING.md) guidelines to start help us!\n\n\n## License\n\nLicensed under [MIT](./LICENSE).\n\n\n[validation]: https://raw.githubusercontent.com/nodejs/package-maintenance/781a6bb752f4928e9e5e916b10ba38eb5289f316/docs/drafts/Baseline%20practive%20-%20Document%20support%20levels.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs%2Fpackage-compliant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodejs%2Fpackage-compliant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs%2Fpackage-compliant/lists"}