trim-filename
v0.2.0
Published
Trim file name to specific length
Downloads
50
Readme
Install npm install trim-filename
Trim filename to specific length
var trim = require("trim-filename");
var filename = "longfilename1234.jpg";
var trimmed = trim(filename, 5); // l.jpg