readme-file

0.2.0 • Public • Published

npm

readme-file

Build Status Dependency Status

Get the name of README file in a directory.

Example

var readmeFile = require('readme-file');
 
readmeFile('.')
//=> "/path/to/README.md"
 
try {
  readmeFile('/tmp')
}
catch (err) {
  err.message
  //=> "README file not found in /tmp"
}

API

readmeFile(dir)

Returns the path to README file in the directory or throws an error.

Install

npm install readme-file

License

MIT

Package Sidebar

Install

npm i readme-file

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • eush77