JSPM

file-stem

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

Filename without suffix.

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 Dependency Status

Filename without suffix.

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 filename without suffix.

path

Type: string

The path to file or directory.

License

MIT © Andrew Abramov