Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/blond/file-stem
- Owner: blond
- License: mit
- Created: 2016-11-15T09:23:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T01:16:34.000Z (over 4 years ago)
- Last Synced: 2024-11-20T14:07:47.819Z (2 months ago)
- Topics: file, stem
- Language: JavaScript
- Homepage:
- Size: 79.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.svgBasename 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)