1.0.6 • Published 4 months ago

@toolx/remove v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

ToolRemove Documentation

ToolRemove.js is a specialized component of the ToolX library, designed for file and directory removal operations.

Example Usage

import ToolRemove from '@toolx/remove';

const run = async () => {
    const tool = new ToolRemove({}, [`${process.cwd()}/**/*.d.ts`, `!**/node_modules`])
    await tool.run();
}

run();

Usage in Pipeline

This tool can be integrated into a pipeline for automated file removal tasks.

import { Pipeline } from '@toolx/core';
import ToolRemove from '@toolx/tool-remove';
import ToolOther from '@toolx/other'; // Example of another tool

// Setting up the pipeline
const pipeline = new Pipeline();
pipeline.compose(
    new ToolOther(/* ToolOther options */),
    new ToolRemove({}, '**/*.json')
);

// Running the pipeline
pipeline.run(options, inputPath, outputPath).then(() => {
    console.log('File removal in pipeline complete');
});
1.0.6

4 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago