Skip to content

extra-path.web 1.2.0

Install from the command line:
Learn more about npm packages
$ npm install @nodef/extra-path.web@1.2.0
Install via package.json:
"@nodef/extra-path.web": "1.2.0"

About this version

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

Details


Assets

  • extra-path.web-1.2.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0