# has-readme

> Check if a project has README.md

Latest version **0.0.3** (published 2017-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install has-readme
pnpm add has-readme
yarn add has-readme
bun add has-readme
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-07-07 |
| First published | 2017-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bu Kinoshita |
| Maintainers | bukinoshita |
| Keywords | has, read, readme, npm, github, docs, git |

## Links

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

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2017-07-07
- 0.0.2 — 2017-06-24
- 0.0.1 — 2017-03-08

## README

# has-readme [![Build Status](https://travis-ci.org/bukinoshita/has-readme.svg?branch=master)](https://travis-ci.org/bukinoshita/has-readme)
> Check if a project has README.md

Useful for tools that needs to know whether to write on README.md or create a new one.

Checks if a README.md file is present in the working directory.

## Install

```bash
$ npm install --save has-readme
```

## Usage
```
.
├── project-zero
│   └── package.json
└── project-one
    ├── package.json
    └── readme.md
```

```js
import hasReadme from 'has-readme'

hasReadme('project-zero')
//=> false

hasReadme('project-one')
//=> true
```

## API

### hasReadme([cwd])

Returns a `boolean`.

#### cwd

Type: `string`<br>
Default: `process.cwd()`

Current working directory.

## License
MIT © [Bu Kinoshita](https://bukinoshita.io)

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