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"
Get the bare name of a file, without its extension.
> npm install basename
var basename = require('basename');
basename('path/to/file.txt');
// » "file"