Package Exports
- file-stem
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (file-stem) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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