A modern cli tool that keeps your deps fresh
npx @tessl/cli install tessl/npm-taze@19.5.0Taze is a modern command-line interface tool for dependency management that helps developers keep their package dependencies fresh and up-to-date. Built with TypeScript and designed for the modern JavaScript ecosystem, it provides intelligent dependency updating with built-in monorepo support, safe version range management, and interactive updating workflows.
npm install taze or use directly with npx tazeimport { CheckPackages, loadPackages, writePackage, defineConfig } from "taze";For CommonJS:
const { CheckPackages, loadPackages, writePackage, defineConfig } = require("taze");# Check for dependency updates
npx taze
# Check for major updates
npx taze major
# Update dependencies interactively
npx taze -I
# Write updates to package.json
npx taze -w
# Recursively check monorepo
npx taze -rimport { CheckPackages, defineConfig } from "taze";
// Basic dependency checking
const result = await CheckPackages({
cwd: process.cwd(),
mode: "minor",
write: false
});
// Configuration-based usage
const config = defineConfig({
mode: "patch",
include: ["react", "typescript"],
exclude: ["legacy-lib"]
});
const results = await CheckPackages(config, {
afterPackagesLoaded: (packages) => {
console.log(`Found ${packages.length} packages`);
}
});Taze is built around several key components:
Core functions for programmatic dependency management and package analysis. Ideal for integration into build tools, CI/CD pipelines, and custom automation scripts.
function CheckPackages(
options: CheckOptions,
callbacks?: CheckEventCallbacks
): Promise<{ packages: PackageMeta[] }>;
function defineConfig(config: Partial<CheckOptions>): Partial<CheckOptions>;Full-featured CLI for interactive and automated dependency management with extensive configuration options and workflow support.
taze [mode] [options]
# Available modes: default | major | minor | patch | latest | newest | next
# Key options: -w (write), -I (interactive), -r (recursive), -f (force)Flexible configuration system supporting file-based configuration, environment variables, and runtime options with intelligent defaults.
interface CheckOptions extends CommonOptions {
mode?: RangeMode;
write?: boolean;
interactive?: boolean;
install?: boolean;
update?: boolean;
global?: boolean;
}type RangeMode = "default" | "major" | "minor" | "patch" | "latest" | "newest" | "next";
interface PackageMeta {
name: string;
version: string;
filepath: string;
deps: RawDep[];
resolved: ResolvedDepChange[];
}
interface ResolvedDepChange {
name: string;
currentVersion: string;
targetVersion: string;
diff: "major" | "minor" | "patch" | "error" | null;
update: boolean;
}