Published July 25, 2022 | Version 1.1.25

nodef/extra-path: Useful additions to inbuilt path module

Authors/Creators

Description

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

<br>

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

<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>

<br>

Files

nodef/extra-path-1.1.25.zip

Files (89.5 kB)

Name Size
md5:bc12e5bb789c85f349ab2dc2055e1b81
89.5 kB Preview Download

Additional details

Related works