filename.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.17 • Public • Published

filename.js

LambCI Code Climate

Browser / Node.js object to aid in manipulating filenames with JavaScript

Usage

Get the file extension

var extension = filenameJs.extension('some/filename/here.js'); // js

Get the file basename

var basename = filenameJs.basename('some/filename/here.js');   // here

Append any suffix

filenameJs.appendSuffix(Date.now(), 'filename.js'); // filename.1452851827459.js

Readme

Keywords

none

Package Sidebar

Install

npm i filename.js

Weekly Downloads

0

Version

1.0.17

License

ISC

Last publish

Collaborators

  • 66pix