Installations
npm install replace-ext
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 10
Node Version
10.15.1
NPM Version
6.4.1
Score
99.7
Supply Chain
77.1
Quality
77.6
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
gulpjs
Download Statistics
Total Downloads
2,074,358,791
Last Day
1,056,007
Last Week
5,411,280
Last Month
18,517,226
Last Year
298,771,582
GitHub Statistics
46 Stars
16 Commits
8 Forks
8 Watching
1 Branches
4 Contributors
Bundle Size
410.00 B
Minified
271.00 B
Minified + Gzipped
Package Meta Information
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
Publised On
04 May 2020
Total Downloads
Cumulative downloads
Total Downloads
2,074,358,791
Last day
6.3%
1,056,007
Compared to previous day
Last week
11.9%
5,411,280
Compared to previous week
Last month
-30.8%
18,517,226
Compared to previous month
Last year
-2.6%
298,771,582
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
5
replace-ext
Replaces a file extension with another one.
Usage
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
API
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 enterprise
Available 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.
License
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/gulpjs/.github/SECURITY.md:1
- Info: Found linked content: github.com/gulpjs/.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/gulpjs/.github/SECURITY.md:1
- Info: Found text in security policy: github.com/gulpjs/.github/SECURITY.md:1
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
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/replace-ext/dev.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/dev.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/replace-ext/dev.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/replace-ext/dev.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/replace-ext/dev.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/dev.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/replace-ext/dev.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/dev.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/replace-ext/dev.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/replace-ext/release.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/dev.yml:51
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 third-party GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/dev.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 3 are checked with a SAST tool
Score
4.2
/10
Last Scanned on 2025-01-13
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 MoreOther packages similar to 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