basename
Get the bare name of a file, without its extension.
Last updated 12 years ago by tomekwi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install basename 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.2                                ...           latest (12 years ago)

3 Versions

  • 0.1.2                                ...           12 years ago
  • 0.1.1                                ...           12 years ago
  • 0.1.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 10
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 1
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE