basename

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
basename
510.1.28 years ago8 years agoMinified + gzip package size for basename in KB

Readme

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.