{"id":15612465,"url":"https://github.com/euberdeveloper/svecchiator","last_synced_at":"2026-02-08T16:01:59.930Z","repository":{"id":65522194,"uuid":"484054912","full_name":"euberdeveloper/svecchiator","owner":"euberdeveloper","description":"An npm module to brutally update a Node.js project's dependencies","archived":false,"fork":false,"pushed_at":"2024-08-25T17:53:53.000Z","size":938,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-26T20:23:06.575Z","etag":null,"topics":["cli","nodejs","npm"],"latest_commit_sha":null,"homepage":"svecchiator.vercel.app","language":"TypeScript","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/euberdeveloper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-21T13:06:20.000Z","updated_at":"2024-08-25T17:53:56.000Z","dependencies_parsed_at":"2024-08-25T19:06:34.237Z","dependency_job_id":null,"html_url":"https://github.com/euberdeveloper/svecchiator","commit_stats":{"total_commits":69,"total_committers":3,"mean_commits":23.0,"dds":0.08695652173913049,"last_synced_commit":"9d442086f7ee520c0f0eeeeb6074f125fa09cbb1"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/euberdeveloper/svecchiator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euberdeveloper%2Fsvecchiator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euberdeveloper%2Fsvecchiator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euberdeveloper%2Fsvecchiator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euberdeveloper%2Fsvecchiator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/euberdeveloper","download_url":"https://codeload.github.com/euberdeveloper/svecchiator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euberdeveloper%2Fsvecchiator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29236122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","nodejs","npm"],"created_at":"2024-10-03T06:43:09.766Z","updated_at":"2026-02-08T16:01:58.773Z","avatar_url":"https://github.com/euberdeveloper.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Lint](https://github.com/euberdeveloper/svecchiator/workflows/Lint/badge.svg)\n![Build](https://github.com/euberdeveloper/svecchiator/workflows/Build/badge.svg)\n![Test](https://github.com/euberdeveloper/svecchiator/workflows/Test/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/euberdeveloper/svecchiator/badge.svg?branch=main)](https://coveralls.io/github/euberdeveloper/svecchiator?branch=main)\n[![codecov](https://codecov.io/gh/euberdeveloper/svecchiator/branch/main/graph/badge.svg?token=4YW49XC338)](https://codecov.io/gh/euberdeveloper/svecchiator)\n[![Known Vulnerabilities](https://snyk.io/test/github/euberdeveloper/svecchiator/badge.svg?targetFile=package.json)](https://snyk.io/test/github/euberdeveloper/svecchiator?targetFile=package.json)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![License](https://img.shields.io/npm/l/svecchiator.svg)](https://github.com/euberdeveloper/svecchiator/blob/main/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/euberdeveloper/svecchiator.svg)](https://github.com/euberdeveloper/svecchiator/issues)\n![npm](https://img.shields.io/npm/v/svecchiator.svg)\n\n# svecchiator\nAn npm module to brutally update a Node.js project's dependencies\n\n## The name\n\nA little explaination of the name **svecchiator**: \n\nIn Italian \"svecchiare\" means to remove the old parts from something or to renew something. This module will remove the old dependencies, replacing them with the ones with the latest versions.\n\n## How does it work\n\nUnder the hood, svecchiator reads the package.json file and manually calls the `npm install` and `npm uninstall` commands to update the dependencies. It alwo works with `pnpm` and `yarn`.\n\n## Install\n\nTo install svecchiator as a local module:\n\n```bash\n$ npm install svecchiator\n```\n\nTo install svecchiator as a global module:\n\n```bash\n$ npm install -g svecchiator\n```\n\n## Usage (local module)\n\n### Upgrade everything\n\nSimple:\n\n```js\nimport { svecchia } from 'svecchiator';\n\nasync function main() {\n    await svecchia();\n}\nmain();\n```\n\nWith custom configuration:\n\n```js\nimport { svecchia } from 'svecchiator';\n\nasync function main() {\n    await svecchia({\n        path: '../my-project',\n        onlyDevDeps: true,\n        cleanCache: true,\n        exclude: ['dree', 'eslint'],\n        packageManager: 'pnpm'\n    });\n}\nmain();\n```\n\n## Usage (global module)\n\n### Simple\n\n```bash\n$ svecchia\n```\n\nThis will uninstall and install again all the deps and dev deps of the current dir project.\n\n### Only dev deps and with another project dir\n\n```bash\n$ svecchia --dev --source ./my-project\n```\n\nThis will uninstall and install again only the dev deps of the project in `./my-project`.\n\n### Exclude packages\n\n```bash\n$ svecchia -e eslint -e dree\n```\n\nThis will exclude the packages `dree` and `eslint`\n\n### Other package managers\n\n```bash\n$ svecchia --package-manager pnpm\n```\n\nThis will use `pnpm` instead of `npm` to uninstall and install the packages.\n\n### More help\n\n```bash\n$ svecchiator --help\n```\n\nThis will show the help of the command.\n\n### Code completion\n\nIn case you wanted to add the code completion for cli commands, you can use the following command:\n\n```bash\n$ svecchia completion\n```\n\nIt will output the code completion for your shell. You can then add it to your `.bashrc` or `.zshrc` file.\n\nFor instance, if you want to add it to your `.bashrc` file, you can do it like this:\n\n```bash\n$ svecchia completion \u003e\u003e ~/.bashrc\n```\n\n## API\n\n### Online documentation\n\nThe documentation generated with **TypeDoc** is available in this **[site](https://svecchiator.euber.dev/)**.\nThere is also a more specific version for development in this **[site](https://svecchiator-dev.euber.dev/)**.\n\n### scan\n\n**Syntax:**\n\n`svecchiator.svecchia(options)`\n\n**Description:**\n\nA function that given some options, upgrades the dependencies of the package.json file. It works by running the command to uninstall and install them again. Note: the function is **async**.\n\n**Options parameters:**\n\n* __path__: Default value: `.`. The path of the folder containing the package.json file.\n* __onlyDevDeps__: Default value: `false`. If true, only the devDependencies will be updated.\n* __onlyProdDeps__: Default value: `false`. If true, only the dependencies will be updated.\n* __onlyOptionalDeps__: Default value: `false`. If true, only the optional dependencies will be updated.\n* __onlyPeerDeps__: Default value: `false`. If true, only the peer dependencies will be updated.\n* __cleanCache__: Default value: `false`. If true, the npm cache will be cleaned before updating the dependencies.\n* __exclude__: Default value: `[]`. The list of dependencies to exclude from the update.\n* __only__: Default value: `[]`. The list of dependencies to update. If specified and not empty, only the dependencies in this list will be updated.\n* __packageManager__: Default value: `npm`. The package manager to use. It can be `npm`, `pnpm` or `yarn`.\n\n## Project structure\n\n[//]: # (dree - BEGIN)\nMade with [dree](https://github.com/marketplace/actions/ga-dree)\n\n\n```\nsvecchiator\n ├── .env.example\n ├── .eslintignore\n ├── .eslintrc.cjs\n ├─\u003e .github\n │   └─\u003e workflows\n │       ├── build.yml\n │       ├── dree.yml\n │       ├── lint.yml\n │       └── test.yml\n ├── .gitignore\n ├── .prettierrc.cjs\n ├── .release-it.json\n ├── CHANGELOG.md\n ├── LICENSE\n ├── README.md\n ├── babel.config.cjs\n ├── build.mjs\n ├─\u003e docs\n │   ├── .gitignore\n │   └─\u003e tree\n │       └── dree.config.json\n ├── jest.config.ts\n ├── package.json\n ├── pnpm-lock.yaml\n ├─\u003e source\n │   ├── index.bin.ts\n │   ├── index.ts\n │   ├── shims.d.ts\n │   └── tsconfig.json\n ├─\u003e test\n │   ├── .eslintrc.cjs\n │   ├─\u003e assets\n │   │   ├─\u003e withAllDeps\n │   │   │   └── package.json\n │   │   ├─\u003e withNpmLock\n │   │   │   ├── package-lock.json\n │   │   │   └── package.json\n │   │   ├─\u003e withPnpmLock\n │   │   │   ├── package.json\n │   │   │   └── pnpm-lock.yaml\n │   │   ├─\u003e withProdAndDevDeps\n │   │   │   └── package.json\n │   │   ├─\u003e withYarnLock\n │   │   │   ├── package.json\n │   │   │   └── yarn.lock\n │   │   ├─\u003e withoutDeps\n │   │   │   └── package.json\n │   │   ├─\u003e withoutDevDeps\n │   │   │   └── package.json\n │   │   └─\u003e withoutProdDeps\n │   │       └── package.json\n │   ├─\u003e suites\n │   │   └─\u003e integration\n │   │       ├── auto.test.ts\n │   │       ├── npm.test.ts\n │   │       ├── pnpm.test.ts\n │   │       └── yarn.test.ts\n │   └─\u003e utils\n │       ├── mockExecuteCommand.ts\n │       └── paths.ts\n ├── tsconfig.json\n ├── typedoc.cjs\n └── typedoc.dev.cjs\n```\n[//]: # (dree - END)\n\n## Development\n\nMake sure that you have all the dependencies installed\n\n### Transpile\n\nTo transpile the typescript code\n\n```bash\n$ pnpm transpile\n```\n\nThe transpiled code will be in the `dist` folder.\n\n### Bundle\n\nTo bundle the library with esbuild:\n\n```bash\n$ pnpm bundle\n```\n\nThe bundled code will be in the `bundled` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuberdeveloper%2Fsvecchiator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feuberdeveloper%2Fsvecchiator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuberdeveloper%2Fsvecchiator/lists"}