0.2.1 • Published 9 years ago
name-from-path v0.2.1
name-from-path

Installation
$ npm install --save name-from-pathUsage
const nameFromPath = require('name-from-path');
nameFromPath('some-path-to/Rainbow.txt'); // returns Rainbow.textoptions
Strip extension
const nameFromPath = require('name-from-path');
nameFromPath('some-path-to/Rainbow.txt', true); // returns RainbowLicense
Apache-2.0 © Glenn Vandeuren