has-readme

0.0.3 • Public • Published

has-readme Build Status

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

$ npm install --save has-readme

Usage

.
├── project-zero
│   └── package.json
└── project-one
    ├── package.json
    └── readme.md
import hasReadme from 'has-readme'

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

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

API

hasReadme([cwd])

Returns a boolean.

cwd

Type: string
Default: process.cwd()

Current working directory.

License

MIT © Bu Kinoshita

Package Sidebar

Install

npm i has-readme

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • bukinoshita