Gathering detailed insights and metrics for node-rename-path
Gathering detailed insights and metrics for node-rename-path
Gathering detailed insights and metrics for node-rename-path
Gathering detailed insights and metrics for node-rename-path
npm install node-rename-path
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (64.31%)
JavaScript (35.69%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
35 Commits
2 Watchers
5 Branches
1 Contributors
Updated on Jun 14, 2022
Latest Version
5.0.0
Package Id
node-rename-path@5.0.0
Unpacked Size
4.82 kB
Size
2.17 kB
File Count
6
NPM Version
7.18.1
Node Version
16.4.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Node.js path renaming made easy.
1npm add node-rename-path
1import rename from 'node-rename-path'; 2 3const PATH = 'documents/work/readme.md'; 4let results = ''; 5 6// Do nothing 7results = rename(PATH); 8console.log(results); 9// -> 'documents/work/readme.md' 10 11// Change file name 12results = rename(PATH, (pathObj) => { 13 return { 14 name: 'day1_' + pathObj.name + '_notes', 15 }; 16}); 17console.log(results); 18// -> documents/work/day1_readme_notes.md 19 20// Reset file name 21results = rename(PATH, (pathObj) => { 22 return { 23 name: '___', 24 }; 25}); 26console.log(results); 27// -> documents/work/___.md 28 29// Change extension 30results = rename(PATH, (pathObj) => { 31 return { 32 ext: '.a.b.c.d', 33 }; 34}); 35console.log(results); 36// -> documents/work/readme.a.b.c.d 37 38// Remove extension 39results = rename(PATH, (pathObj) => { 40 return { 41 ext: '', 42 }; 43}); 44console.log(results); 45// -> documents/work/readme 46 47// Set both file name and extension all at once 48results = rename(PATH, (pathObj) => { 49 return { 50 base: 'brand-new.pdf', 51 }; 52}); 53console.log(results); 54// -> documents/work/brand-new.pdf 55 56// Update directory path 57results = rename(PATH, (pathObj) => { 58 return { 59 dir: '/root', 60 }; 61}); 62console.log(results); 63// -> /root/readme.md
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More