0.2.1 • Published 8 years ago

name-from-path v0.2.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 years ago

name-from-path NPM version Build Status Dependency Status

Installation

$ npm install --save name-from-path

Usage

const nameFromPath = require('name-from-path');

nameFromPath('some-path-to/Rainbow.txt'); // returns Rainbow.text

options

Strip extension

const nameFromPath = require('name-from-path');

nameFromPath('some-path-to/Rainbow.txt', true); // returns Rainbow

License

Apache-2.0 © Glenn Vandeuren