oscarotero / nudd

Add, update and de-duplicate Deno Dependencies

Home Page:https://deno.land/x/nudd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nudd

Run this script to update your Deno dependencies to their latest published versions. This package is a fork of the original deno-udd package created from Andy Hayden with significant changes and renamed to nudd (New Udd).

The biggest differences from the original package are:

  • Updated dependencies and Deno API. Most code has been refactored.
  • Speed improved by updating dependencies concurrently.
  • Nudd only updates to stable versions.
  • Nudd only updates to the latest version (removed fragment feature).
  • Removed --test feature.
  • Added support for .json files (import maps).
  • Added support for jsr.io modules.
  • Added more commands: update, add, duplicates.

Install

deno install --allow-run --allow-read --allow-write --allow-net --name nudd --force --global https://deno.land/x/nudd/cli.ts

To update:

nudd --upgrade

Update dependencies

Update the imports of the current import map file:

nudd update

Update the imports of the deps.ts file:

nudd update deps.ts

Update all TS files in your directory:

nudd update *.ts

Update the imports of your scripts installed globally with Deno:

nudd update --global

Use the --dry-run argument to only show outdated dependencies without update them:

nudd update --dry-run

Detect duplicated dependencies

Detect and fix multiple versions of the same package:

nudd duplicates main.ts

Use the --dry-run argument to only show duplicated dependencies without fix them:

nudd duplicates main.ts --dry-run

Add new dependencies

Search and add a new dependency to your import map file:

nudd add react

Search and add several dependencies at the same time:

nudd add react @std/path lume lumeland/cms
  • Single name dependencies, (like react or lume) are searched in deno.land/x and npm.
  • Scoped dependencies starting with @ (like @std/path) are searched in jsrand npm.
  • Scoped dependencies without @ (like lumeland/cms) are searched in GitHub and imported from jsdelivr.

About

Add, update and de-duplicate Deno Dependencies

https://deno.land/x/nudd

License:MIT License


Languages

Language:TypeScript 100.0%