<commit_before># require-relative-main [![Build Status](https://travis-ci.org/bendrucker/require-relative-main.svg?branch=master)](https://travis-ci.org/bendrucker/require-relative-main)

> require a module relative to the "main" script

## Install

```
$ npm install --save require-relative-main
```


## Usage

```js
var requireRelativeMain = require('require-relative-main');

requireRelativeMain('./foo-bar');
```

## API

### `requireRelativeMain(modulePath, cwd)`

#### `modulePath`

*Required*  
Type: `string`

The path to the module to be required. This will be required relative to the "main" entry for the package.

#### `cwd`

Type: `string`
Default: `process.cwd()`

The working directory from which to look upwards for the package.json file that specifies the main script.

## License

MIT © [<NAME>](http://bendrucker.me)<commit_msg>Update api docs format<commit_after># require-relative-main [![Build Status](https://travis-ci.org/bendrucker/require-relative-main.svg?branch=master)](https://travis-ci.org/bendrucker/require-relative-main)

> require a module relative to the "main" script

## Install

```
$ npm install --save require-relative-main
```


## Usage

```js
var requireRelativeMain = require('require-relative-main');

requireRelativeMain('./foo-bar');
```

## API

#### `requireRelativeMain(modulePath, [cwd])` -> `any`

##### modulePath

*Required*  
Type: `string`

The path to the module to be required. This will be required relative to the "main" entry for the package.

##### cwd

Type: `string`  
Default: `process.cwd()`

The working directory from which to look upwards for the package.json file that specifies the main script.

## License

MIT © [<NAME>](http://bendrucker.me)
{'fraction_non_alphanumeric': 0.1555037856726849, 'fraction_numerical': 0.0, 'mean_word_length': 4.823728813559322, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3970518', 'n_tokens_mistral': 557, 'n_tokens_neox': 532, 'n_words': 155}