file-stem
v1.0.2
Published
Basename without extension
Downloads
3
Maintainers
Readme
file-stem
Basename without extension.
Install
$ npm install --save file-stem
Usage
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
MIT © Andrew Abramov