Get full path or file directory name only?
Get full path to file or its directory name
import { path } from '@biorate/tools';
console.log(path.dirname('/www/root/index.html')); // root
console.log(path.dirname('/www/root/index.html', true)); // /www/root
Generated using TypeDoc
Path