site/node_modules/rimraf/dist/esm/rimraf-native.js
2024-10-14 08:09:33 +02:00

19 lines
430 B
JavaScript

import { promises, rmSync } from './fs.js';
const { rm } = promises;
export const rimrafNative = async (path, opt) => {
await rm(path, {
...opt,
force: true,
recursive: true,
});
return true;
};
export const rimrafNativeSync = (path, opt) => {
rmSync(path, {
...opt,
force: true,
recursive: true,
});
return true;
};
//# sourceMappingURL=rimraf-native.js.map