# ignorable

> Detects whether a file in a package can be ignored

Latest version **1.1.2** (published 2017-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install ignorable
pnpm add ignorable
yarn add ignorable
bun add ignorable
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2017-11-24 |
| First published | 2017-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zoltan Kochan |
| Maintainers | zkochan |
| Keywords | ignore |

## Links

- npm: https://www.npmjs.com/package/ignorable
- Repository: https://github.com/zkochan/ignorable
- Homepage: https://github.com/zkochan/ignorable#readme
- Issues: https://github.com/zkochan/ignorable/issues
- npm.io page: https://npm.io/package/ignorable

## Recent versions

- 1.1.2 (latest) — 2017-11-24
- 1.1.1 — 2017-11-24
- 1.1.0 — 2017-11-24
- 1.0.1 — 2017-10-19
- 1.0.0 — 2017-10-19
- 0.0.0 — 2017-07-26

## README

# ignorable

> Detects whether a file in a package can be ignored

<!--@shields('npm', 'travis')-->
[![npm version](https://img.shields.io/npm/v/ignorable.svg)](https://www.npmjs.com/package/ignorable) [![Build Status](https://img.shields.io/travis/zkochan/ignorable/master.svg)](https://travis-ci.org/zkochan/ignorable)
<!--/@-->

## Installation

```sh
npm i -S ignorable
```

## Usage

<!--@example('./example.js')-->
```js
const ignorable = require('ignorable')

console.log(ignorable('readme.md'))
//> true

console.log(ignorable('test.js'))
//> true

console.log(ignorable.safe('test.js'))
//> false
```
<!--/@-->

## API

### `ignorable(filename)`

Returns whether `true` if the file does not influence the functionality of the package.

### `ignorable.safe(filename)`

Safer than `ignorable()`. Does not return `true` for resources that might be dangerous to remove.

## License

[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)

---
_Source: https://npm.io/package/ignorable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
