{"id":15669342,"url":"https://github.com/jaydenseric/audit-age","last_synced_at":"2025-05-06T20:07:22.162Z","repository":{"id":57186690,"uuid":"135522859","full_name":"jaydenseric/audit-age","owner":"jaydenseric","description":"A Node.js CLI and equivalent JS API to audit the age of installed production npm packages.","archived":false,"fork":false,"pushed_at":"2022-08-26T01:45:31.000Z","size":104,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T17:44:33.385Z","etag":null,"topics":["esm","maintained","mjs","node","npm","npx"],"latest_commit_sha":null,"homepage":"https://npm.im/audit-age","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/jaydenseric.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":".github/funding.yml","license":"license.md","code_of_conduct":null,"threat_model":null,"audit":"audit-age.mjs","citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"jaydenseric"}},"created_at":"2018-05-31T02:46:27.000Z","updated_at":"2023-03-10T09:27:21.000Z","dependencies_parsed_at":"2022-08-28T11:11:52.687Z","dependency_job_id":null,"html_url":"https://github.com/jaydenseric/audit-age","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Faudit-age","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Faudit-age/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Faudit-age/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Faudit-age/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaydenseric","download_url":"https://codeload.github.com/jaydenseric/audit-age/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242819372,"owners_count":20190442,"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":["esm","maintained","mjs","node","npm","npx"],"created_at":"2024-10-03T14:22:21.144Z","updated_at":"2025-03-10T08:31:58.990Z","avatar_url":"https://github.com/jaydenseric.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jaydenseric"],"categories":[],"sub_categories":[],"readme":"# audit-age\n\nA [Node.js](https://nodejs.org) [CLI](#cli) and equivalent JS [API](#exports) to audit the age of installed production [npm](https://npmjs.com) packages.\n\n## Installation\n\n\u003e **Note**\n\u003e\n\u003e Installation isn’t required to use the [CLI](#cli) command [`audit-age`](#command-audit-age) with [`npx`](https://docs.npmjs.com/cli/v8/commands/npx).\n\nTo install [`audit-age`](https://npm.im/audit-age) with [npm](https://npmjs.com/get-npm), run:\n\n```sh\nnpm install audit-age --save-dev\n```\n\nThen, use either the [CLI](#cli) command [`audit-age`](#command-audit-age) or the function [`auditAge`](./auditAge.mjs).\n\n## Requirements\n\nSupported runtime environments:\n\n- [Node.js](https://nodejs.org) versions `^14.17.0 || ^16.0.0 || \u003e= 18.0.0`.\n\nProjects must configure [TypeScript](https://typescriptlang.org) to use types from the ECMAScript modules that have a `// @ts-check` comment:\n\n- [`compilerOptions.allowJs`](https://typescriptlang.org/tsconfig#allowJs) should be `true`.\n- [`compilerOptions.maxNodeModuleJsDepth`](https://typescriptlang.org/tsconfig#maxNodeModuleJsDepth) should be reasonably large, e.g. `10`.\n- [`compilerOptions.module`](https://typescriptlang.org/tsconfig#module) should be `\"node16\"` or `\"nodenext\"`.\n\n## CLI\n\n### Command `audit-age`\n\nAudits the age of installed production [npm](https://npmjs.com) packages.\n\nIt implements the function [`auditAge`](./auditAge.mjs).\n\n#### Examples\n\nUsing [`npx`](https://docs.npmjs.com/cli/v8/commands/npx) in a package directory with installed dependencies:\n\n```sh\nnpx audit-age\n```\n\n## Exports\n\nThe [npm](https://npmjs.com) package [`audit-age`](https://npm.im/audit-age) features [optimal JavaScript module design](https://jaydenseric.com/blog/optimal-javascript-module-design). It doesn’t have a main index module, so use deep imports from the ECMAScript modules that are exported via the [`package.json`](./package.json) field [`exports`](https://nodejs.org/api/packages.html#exports):\n\n- [`auditAge.mjs`](./auditAge.mjs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Faudit-age","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaydenseric%2Faudit-age","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Faudit-age/lists"}