basify

0.0.1 • Public • Published

basify Build Status npm

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

/basify/

    Package Sidebar

    Install

    npm i basify

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • dawsonbotsford