Releases: lukeed/premove
Releases · lukeed/premove
v4.0.0
Breaking
- Always return
boolean
andPromise<boolean>
outputs (#4): 9ce980f
Previously, if a path did not exist, the async-version (premove
) would returnfalse
synchronously.
Now, thepremove
utility will always return aPromise<boolean>
(orboolean
forpremove/sync
) that reflects the path's original existence.
Chores
- Add benchmarks (#3): 7602c12
- Update module size: 3fd3009
- Bump dev-dependency versions: e3c5e65, b8ae1b6
Full Changelog: v3.0.1...v4.0.0
v3.0.1
v3.0.0
Breaking
-
Migrated from
default
to named export: 8904a14ESM/TypeScript
- import premove from 'premove'; + import { premove } from 'premove';
CommonJS
- const premove = require('premove'); + const { premove } = require('premove');
Features
-
Added CLI binary: e91f3b4, cd3c404, c076941
Cross-platformrm -rf
alternative# remove "foo" and "bar" via `npx` $ npx premove foo bar # install globally, use whenever $ npm install premove -g $ premove foo bar