You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
707 B

# get-root-module
7 years ago
> Traverses up the directory tree and returns the first module found
[![Build Status](https://travis-ci.org/lukechilds/get-root-module.svg?branch=master)](https://travis-ci.org/lukechilds/get-root-module)
[![Coverage Status](https://coveralls.io/repos/github/lukechilds/get-root-module/badge.svg?branch=master)](https://coveralls.io/github/lukechilds/get-root-module?branch=master)
[![npm](https://img.shields.io/npm/v/get-root-module.svg)](https://www.npmjs.com/package/get-root-module)
7 years ago
7 years ago
Starts directory traversal from `process.cwd()` so this should only really be used in tests or CLI apps.
7 years ago
## Install
```shell
npm install --save get-root-module
7 years ago
```
## License
MIT © Luke Childs