Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blond/file-stem

Basename without extension
https://github.com/blond/file-stem

file stem

Last synced: about 1 month ago
JSON representation

Basename without extension

Awesome Lists containing this project

README

        

file-stem
=========

[![NPM Status][npm-img]][npm]
[![Travis Status][test-img]][travis]
[![Windows Status][appveyor-img]][appveyor]
[![Coverage Status][coveralls-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/master.svg?label=tests

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

[coveralls]: https://coveralls.io/r/blond/file-stem
[coveralls-img]: https://img.shields.io/coveralls/blond/file-stem/master.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
-------

MIT © [Andrew Abramov](https://github.com/blond)