Path
Get file extname
import { path } from '@biorate/tools';console.log(path.extname('/www/root/index.js')); // .jsconsole.log(path.extname('/www/root/index.html')); // .html Copy
import { path } from '@biorate/tools';console.log(path.extname('/www/root/index.js')); // .jsconsole.log(path.extname('/www/root/index.html')); // .html
Generated using TypeDoc
Path