basify
v0.0.1
Published
Get the base name of a file
Downloads
3
Maintainers
Readme
basify
Get the base name of a file
Install
npm install --save basify
Usage
const basify = require('basify');
basify('index.js');
//=> 'index'
basify(['index1.js', 'index2.html']);
//=> ['index1', 'index2']
API
basify(target)
target
Type: string
|| Array
Removes the filetype extension and returns the base.
License
MIT © Dawson Botsford