<commit_before>file-stem
=========

[![NPM Status][npm-img]][npm]
[![Travis Status][test-img]][travis]
[![Windows Status][appveyor-img]][appveyor]
[![Coverage Status][coverage-img]][coveralls]

[npm]:          https://www.npmjs.org/package/file-stem
[npm-img]:      https://img.shields.io/npm/v/file-stem.svg

[travis]:       https://travis-ci.org/blond/file-stem
[test-img]:     https://img.shields.io/travis/blond/file-stem.svg?label=tests

[appveyor]:     https://ci.appveyor.com/project/blond/file-stem
[appveyor-img]: http://img.shields.io/appveyor/ci/blond/file-stem.svg?style=flat&label=windows

[coveralls]:    https://coveralls.io/r/blond/file-stem
[coverage-img]: https://img.shields.io/coveralls/blond/file-stem.svg

Basename without extension.

Install
-------

```
$ npm install --save file-stem
```

Usage
-----

```js
const stem = require('file-stem');

stem('./lib/file.js'); // ➜ file
stem('index.html');    // ➜ index
stem('build.tar.gz');  // ➜ build.tar
```

API
---

### stem(path)

Returns basename without extension.

### path

Type: `string`

The path to file or directory.

License
-------<commit_msg>docs(related): add link to `file-suffix` module<commit_after>file-stem
=========

[![NPM Status][npm-img]][npm]
[![Travis Status][test-img]][travis]
[![Windows Status][appveyor-img]][appveyor]
[![Coverage Status][coverage-img]][coveralls]

[npm]:          https://www.npmjs.org/package/file-stem
[npm-img]:      https://img.shields.io/npm/v/file-stem.svg

[travis]:       https://travis-ci.org/blond/file-stem
[test-img]:     https://img.shields.io/travis/blond/file-stem.svg?label=tests

[appveyor]:     https://ci.appveyor.com/project/blond/file-stem
[appveyor-img]: http://img.shields.io/appveyor/ci/blond/file-stem.svg?style=flat&label=windows

[coveralls]:    https://coveralls.io/r/blond/file-stem
[coverage-img]: https://img.shields.io/coveralls/blond/file-stem.svg

Basename without extension.

Install
-------

```
$ npm install --save file-stem
```

Usage
-----

```js
const stem = require('file-stem');

stem('./lib/file.js'); // ➜ file
stem('index.html');    // ➜ index
stem('build.tar.gz');  // ➜ build.tar
```

Related
-------

* [file-suffix](https://github.com/blond/file-suffix)

License
-------
{'fraction_non_alphanumeric': 0.22966934763181412, 'fraction_numerical': 0.0, 'mean_word_length': 3.532388663967611, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 15, 'lorem ipsum': 0, 'www.': 2, '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': '437086', 'n_tokens_mistral': 921, 'n_tokens_neox': 856, 'n_words': 118}