extname of file
Get file basename, with .js ext by default
import { path } from '@biorate/tools';
console.log(path.basename('/www/root/index.js', '.js')); // index
console.log(path.basename('/www/root/index.js', '')); // index.js
console.log(path.basename('/www/root/index.html', '.html')); // index
console.log(path.basename('/www/root/index.html')); // index.html
Generated using TypeDoc
Path