Recent Releases of extra-path

extra-path - Useful additions to inbuilt path module

Useful additions to inbuilt path module.
📦 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.


```javascript 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(); ```



Index

| Property | Description | | ---- | ---- | | filename | Get file name without extension. | | symbolname | Get symbol name for file. | | keywordname | Get keyword name for file. |




Coverage Status Test Coverage Maintainability

- JavaScript
Published by wolfram77 over 3 years ago