extra-path
v1.3.0
Published
Useful additions to inbuilt [@std/path] module.<br>
Readme
Useful additions to inbuilt @std/path module.
import * as xpath from "jsr:@nodef/extra-path";
xpath.filename('/home/user/file+name.txt');
// → 'file+name'
xpath.symbolname('/home/user/file+name.txt');
// → 'file_name'
xpath.keywordname('/home/user/file+name.txt');
// → 'file-name'Index
| Property | Description | | ---- | ---- | | filename | Get file name without extension. | | symbolname | Get symbol name for file. | | keywordname | Get keyword name for file. |

