extra-path.web
TypeScript icon, indicating that this package has built-in type declarations

1.1.42 • Public • Published

Useful 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 <script> tag from the jsDelivr CDN.

Stability: Experimental.


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


Index

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



ORG DOI Coverage Status Test Coverage Maintainability

/extra-path.web/

    Package Sidebar

    Install

    npm i extra-path.web

    Weekly Downloads

    9

    Version

    1.1.42

    License

    BSD-3-Clause

    Unpacked Size

    15.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • wolfram77