Home

Awesome

basename

Get the bare name of a file, without its extension.

Installation

> npm install basename

Usage

var basename = require('basename');

basename('path/to/file.txt');
// » "file"

License

MIT © Tomek Wiszniewski.

<!-- Links -->