<commit_before># Module Names

> Return a list of stdlib module names.


<!-- <usage> -->

## Usage

``` javascript
var ls = require( '/path/to/stdlib/tools/ls/module-names' );
```

#### ls( \[options,\] clbk )

Asynchronously returns a list of stdlib module names.

``` javascript
ls( onList );

function onList( error, names ) {
    if ( error ) {
        throw error;
    }
    console.log( names.join( '\n' ) );
}
```

The function accepts the following `options`:

* __dir__: root directory from which to search for modules. Default: `/path/to/lib/node_modules/@stdlib`.

To search from a descendant directory, set the `dir` option.

``` javascript
var opts = {
    'dir': '/path/to/lib/node_modules/@stdlib/math/base'
};

ls( opts, onList );

function onList( error, names ) {
    if ( error ) {
        throw error;
    }
    console.log( names.join( '\n' ) );
}
```<commit_msg>Fix path<commit_after># Module Names

> Return a list of stdlib module names.


<!-- <usage> -->

## Usage

``` javascript
var ls = require( '/path/to/stdlib/tools/ls/module-names' );
```

#### ls( \[options,\] clbk )

Asynchronously returns a list of stdlib module names.

``` javascript
ls( onList );

function onList( error, names ) {
    if ( error ) {
        throw error;
    }
    console.log( names.join( '\n' ) );
}
```

The function accepts the following `options`:

* __dir__: root directory from which to search for modules. Default: `/path/to/lib/node_modules/`.

To search from a descendant directory, set the `dir` option.

``` javascript
var opts = {
    'dir': '/path/to/lib/node_modules/@stdlib/math/base'
};

ls( opts, onList );

function onList( error, names ) {
    if ( error ) {
        throw error;
    }
    console.log( names.join( '\n' ) );
}
```
{'fraction_non_alphanumeric': 0.1632536973833902, 'fraction_numerical': 0.0, 'mean_word_length': 2.979638009049774, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '340854', 'n_tokens_mistral': 623, 'n_tokens_neox': 578, 'n_words': 177}