Skip to content

nodef/extra-path

This branch is up to date with master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

92bb6a4 Β· Sep 29, 2024

History

45 Commits
Sep 29, 2024
Nov 29, 2022
Apr 12, 2023
Apr 12, 2023
Jul 22, 2022
May 11, 2020
Jul 22, 2022
Jul 25, 2022
Sep 29, 2024
Apr 12, 2023
May 30, 2020
Nov 29, 2022
Jul 22, 2022
Sep 29, 2024
Sep 29, 2024
Nov 29, 2022
Mar 31, 2022

Repository files navigation

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