extalibur
v1.0.0
Published
Change the extension on a path or remove it using a well engineered atomic function
Downloads
135
Maintainers
Readme
extalibur
Archetype: Node.js package
extalibur changes the extension on a path or removes it using a well engineered atomic function.
Install
npm install extalibur
Usage
import setExt from 'extalibur';
const filePath = './path/to/content.txt';
console.log(setExt(filePath, '.md'));
//./path/to/content.md
console.log(setExt(filePath, null));
//./path/to/content
Links
Development Homepage:
https://github.com/alexstevovich/extalibur
This link might become extalibur-node in the future if conflicts arise.
License
Licensed under the Apache License 2.0.