1.0.1 • Published 4 months ago
exting v1.0.1
exting
An atomic function for changing file extensions on paths with a perfect minimal API.
Install
npm install exting
Usage
import setExt from 'exting';
const filePath = './path/to/memoires.txt';
console.log(setExt(filePath, '.md'));
//./path/to/memoires.md
console.log(setExt(filePath, null));
//./path/to/memoires
Links
Development Homepage:
https://github.com/alexstevovich/exting
This link might become exting-node in the future if conflicts arise.
License
Licensed under the Apache License 2.0.