-
Notifications
You must be signed in to change notification settings - Fork 0
keywordname
Subhajit Sahu edited this page Jul 25, 2022
·
2 revisions
Get keyword name for file.
Similar: filename, symbolname, keywordname.
keywordname(pth)
// pth: file path
const xpath = require('extra-path');
xpath.keywordname("/home/user/open+source.txt");
// → 'open-source'
xpath.keywordname("/home/user/closedSource.key");
// → 'closed-source'
xpath.keywordname("/home/user/copyleft_licenses.tar.gz");
// → 'copyleft-licenses-tar'