@putout/operator-remove-files
🐊Putout operator adds ability to remove files to plugins
Last updated 2 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/operator-remove-files 
SYNC missed versions from official npm registry.

@putout/operator-remove-files NPM version

????Putout operator adds ability to create plugins that removes files.

Install

npm i putout @putout/operator-remove-files

API

import {operator} from 'putout';

const {removeFiles} = operator;

export const {
    report,
    fix,
    scan,
} = removeFiles(['.DS_Store']);

dismiss

Any rule that uses this operator can pass dismiss to avoid removing files:

{
    "rules": {
        "putout/remove-files": ["on", {
            "dismiss": [".DS_Store"]
        }]
    }
}

License

MIT

Current Tags

  • 1.1.0                                ...           latest (2 months ago)

2 Versions

  • 1.1.0                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (11)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |