Published July 25, 2022
| Version 1.1.25
Software
Open
nodef/extra-path: Useful additions to inbuilt path module
Authors/Creators
Description
Useful additions to inbuilt path module.<br> 📦 Node.js, 🌐 Web, 📜 Files, 📰 Docs, 📘 Wiki.
This package is available in both Node.js and Web formats. The web format is exposed as extra_path standalone variable and can be loaded from jsDelivr CDN.
Stability: Experimental.
<br>
const path = require('extra-path');
function main() {
path.filename('/home/user/file+name.txt');
// → 'file+name'
path.symbolname('/home/user/file+name.txt');
// → 'file_name'
path.keywordname('/home/user/file+name.txt');
// → 'file-name'
}
main();
<br> <br>
Index| Property | Description |
|---|---|
| filename | Get file name without extension. |
| symbolname | Get symbol name for file. |
| keywordname | Get keyword name for file. |
<br> <br>
Files
nodef/extra-path-1.1.25.zip
Additional details
Related works
- Is supplement to
- https://github.com/nodef/extra-path/tree/1.1.25 (URL)