name-from-path

0.2.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i name-from-path

Weekly Downloads

5

Version

0.2.1

License

Apache-2.0

Last publish

Collaborators

  • basicelements