@fippli/file-extensions
v0.0.2
Published
JavaScript file extension library
Downloads
3
Readme
Remove File Extension
Remove file extensions JavaScript.
Usage
const fileExtensions = require('@fippli/js-file-extensions');
// or
import fileExtensions from '@fippli/js-file-extensions';
Remove
fileExtensions.remove('filename.ext')
// => 'filename'
Replace
fileExtensions.replace('filename.ext', 'next')
// => 'filename.next'