Releases: code-hemu/remove-item
Releases · code-hemu/remove-item
Release list
1.0.2
v1.0.2 - New features, zero dependencies
Added
- Quiet mode (
--quiet / -q) - Suppress all non-error output. Ideal for CI scripts. - Interactive mode (
--interactive / -i) - Prompt before each deletion. Safety net for risky cleanups. - Glob path expansion - Pass glob patterns directly:
remove-item "*.log" --force - Include/exclude filters -
--include "*.ts" / --exclude "*.json"for selective recursive removal. Repeatable and comma-separated. - Max depth (
--max-depth <n>) - Limit recursion depth in directory removal. - Root protection - Blocks removal of / or C:\ by default. Override with
--allow-root. - skipped field on RemoveResult - API consumers can distinguish force-skipped paths from actually removed ones.
Changed
- Zero runtime dependencies - Replaced micromatch with a built-in glob matcher.
Fixed
- Non-matching glob with
--forcenow correctly returns { success: true, skipped: true } instead of being silently dropped.
Chores - 27 new tests covering all features (54 total, all passing).
- TypeScript type fixed in README (RemoveItemOptions => RemoveOptions).
1.0.1
v1.0.1
Initial public release.
Features
- removeItem() API - remove files and directories with a single call
- Cross-platform support (Windows, Linux, macOS)
- Recursive directory deletion (--recursive)
- Force removal, skipping missing paths (--force)
- Dry-run preview mode (--dry-run)
- Verbose logging (--verbose)
CLI
- remove-item <path...> [options] binary
- --help, -r/--recursive, -f/--force, -v/--verbose, --dry-run
Project
- Full test suite: 27 tests (unit + integration)
- TypeScript with strict mode, ESM exports
- API docs, CLI docs, usage examples
- CONTRIBUTING.md, CODE_OF_CONDUCT.md