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

@putout/operator-ignore NPM version

A .gitignore file specifies intentionally untracked files that Git should ignore.

(c) git-scm.com

????Putout operator simplifies creating ignore-plugins.

Install

npm i putout @putout/operator-ignore

API

ignore

import {operator} from 'putout';

const {ignore} = operator;

export const {
    report,
    fix,
    traverse,
} = ignore({
    name: '.npmignore',
    list: [
        '.*',
        'yarn-error.log',
        'coverage',
        '*.config.*',
    ],
});

type

import {operator} from 'putout';

const {__json, ignore} = operator;

export const {
    report,
    fix,
    traverse,
} = ignore({
    type: __json,
    name: '.nycrc.json',
    field: 'exclude',
    list: ['*.config.*'],
});

If file and passed in list mask overlaps, only mask saved, and list name removed:

-yarn-error.log
+*.log

License

MIT

Current Tags

  • 6.1.0                                ...           latest (2 months ago)

17 Versions

  • 6.1.0                                ...           2 months ago
  • 6.0.7                                ...           2 months ago
  • 6.0.6                                ...           2 months ago
  • 6.0.5                                ...           2 months ago
  • 6.0.4                                ...           2 months ago
  • 6.0.3                                ...           2 months ago
  • 6.0.2                                ...           2 months ago
  • 6.0.1                                ...           2 months ago
  • 6.0.0                                ...           2 months ago
  • 5.0.0                                ...           3 months ago
  • 4.0.0                                ...           4 months ago
  • 3.0.0                                ...           10 months ago
  • 2.0.0                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (10)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |