file-stem

1.0.2 • Public • Published

file-stem

NPM Status Travis Status Windows Status Coverage Status

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

Package Sidebar

Install

npm i file-stem

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • blond