JSPM

file-stem

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q5529F
  • License MIT

Basename without extension

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

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