Skip to content

Truncates a filename string preserving filename extension.

License

Notifications You must be signed in to change notification settings

stefanbackor/truncateFilename

Repository files navigation

truncateFilename

Truncates a filename string preserving filename extension.

Install with npm

npm install truncateFilename

Example usage

import {truncateFilename} from "truncateFilename";
var result = truncateFilename("helloWorld-example.minified.js", 15, "...");
// "hello...fied.js"

License

MIT License

About

Truncates a filename string preserving filename extension.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published