https://github.com/nodef/extra-path
Useful additions to inbuilt path module.
https://github.com/nodef/extra-path
extra filename keywordname path symbolname
Last synced: 3 months ago
JSON representation
Useful additions to inbuilt path module.
- Host: GitHub
- URL: https://github.com/nodef/extra-path
- Owner: nodef
- License: bsd-3-clause
- Created: 2019-04-02T18:36:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-08T17:14:13.000Z (about 1 year ago)
- Last Synced: 2026-02-21T17:52:03.988Z (4 months ago)
- Topics: extra, filename, keywordname, path, symbolname
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/extra-path
- Size: 348 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
Useful additions to inbuilt [path] module.
📦 [Node.js](https://www.npmjs.com/package/extra-path),
🌐 [Web](https://www.npmjs.com/package/extra-path.web),
📜 [Files](https://unpkg.com/extra-path/),
📰 [Docs](https://nodef.github.io/extra-path/),
📘 [Wiki](https://github.com/nodef/extra-bit/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](https://www.youtube.com/watch?v=L1j93RnIxEo).
<br>
```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();
```
<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>
[](https://www.youtube.com/watch?v=8oXhShuIjrQ)<br>
[](https://nodef.github.io)
[](https://zenodo.org/badge/latestdoi/179137165)
[](https://coveralls.io/github/nodef/extra-path?branch=master)
[](https://codeclimate.com/github/nodef/extra-path/test_coverage)
[](https://codeclimate.com/github/nodef/extra-path/maintainability)

[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