Gathering detailed insights and metrics for replace-ext
Gathering detailed insights and metrics for replace-ext
Gathering detailed insights and metrics for replace-ext
Gathering detailed insights and metrics for replace-ext
@types/replace-ext
TypeScript definitions for replace-ext
gulp-ext-replace
Small gulp plugin to change a file's extension
babel-plugin-replace-import-extension
Babel plugin to replace extension of file name written in import statement and dynamic import
change-file-extension
Change the file extension of a path
npm install replace-ext
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.7
Supply Chain
77.1
Quality
77.4
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
2,173,521,303
Last Day
298,232
Last Week
6,503,749
Last Month
26,086,641
Last Year
299,549,174
MIT License
46 Stars
16 Commits
8 Forks
7 Watchers
1 Branches
4 Contributors
Updated on Nov 12, 2023
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
replace-ext@2.0.0
Size
2.40 kB
NPM Version
6.4.1
Node Version
10.15.1
Published on
May 04, 2020
Cumulative downloads
Total Downloads
Last Day
1.9%
298,232
Compared to previous day
Last Week
8.7%
6,503,749
Compared to previous week
Last Month
-4.3%
26,086,641
Compared to previous month
Last Year
0.2%
299,549,174
Compared to previous year
5
Replaces a file extension with another one.
1var replaceExt = require('replace-ext'); 2 3var path = '/some/dir/file.js'; 4var newPath = replaceExt(path, '.coffee'); 5 6console.log(newPath); // /some/dir/file.coffee
replaceExt(path, extension)
Replaces the extension from path
with extension
and returns the updated path string.
Does not replace the extension if path
is not a string or is empty.
replace-ext
for enterpriseAvailable as part of the Tidelift Subscription.
The maintainers of replace-ext
and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 3/16 approved changesets -- score normalized to 1
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
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
Score
Last Scanned on 2025-05-05
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