Useful additions to inbuilt path module {web}.
npm install extra-path.webUseful additions to inbuilt [path] module.
š¦ Node.js,
š Web,
š Files,
š° Docs,
š Wiki.
This package is available in Node.js and Web formats. To use it on the web,
simply use the extra_path global variable after loading with a
tag from the [jsDelivr CDN].
[path]: https://nodejs.org/api/path.html
[jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-path.web/index.js
> Stability: Experimental.
``javascript
const xpath = require('extra-path');
function main() {
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'
}
main();
``
| Property | Description |
| ---- | ---- |
| [filename] | Get file name without extension. |
| [symbolname] | Get symbol name for file. |
| [keywordname] | Get keyword name for file. |







[filename]: https://github.com/nodef/extra-path/wiki/filename
[symbolname]: https://github.com/nodef/extra-path/wiki/symbolname
[keywordname]: https://github.com/nodef/extra-path/wiki/keywordname