Wondering what’s next for npm?Check out our public roadmap! »

    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

    Install

    npm i file-stem

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • avatar