Gathering detailed insights and metrics for @betit/rollup-plugin-rename-extensions
Gathering detailed insights and metrics for @betit/rollup-plugin-rename-extensions
Gathering detailed insights and metrics for @betit/rollup-plugin-rename-extensions
Gathering detailed insights and metrics for @betit/rollup-plugin-rename-extensions
Rollup plugin to take modules from RollUp and rename their file extensions.
npm install @betit/rollup-plugin-rename-extensions
Typescript
Module System
Node Version
NPM Version
69.5
Supply Chain
87.3
Quality
74.9
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
16 Stars
14 Commits
13 Forks
4 Watchers
3 Branches
3 Contributors
Updated on Sep 04, 2024
Latest Version
0.1.0
Package Id
@betit/rollup-plugin-rename-extensions@0.1.0
Size
5.24 kB
NPM Version
6.11.3
Node Version
11.1.0
Published on
Oct 08, 2019
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
4
Rollup plugin to take modules from RollUp and rename their file extensions. Useful for when using preserveModules
. The plugin will also parse
all modules code and rewrite imports/exports to match the new file name.
1npm i --save-dev @betit/rollup-plugin-rename-extensions
As an example, heres how we can convert .ts
.vue
to .js
and .vue.js
respectively.
1import renameExtensions from '@betit/rollup-plugin-rename-extensions'; 2 3// Rollup Configuration 4export default { 5 input: './src/index.js', 6 preserveModules: true, 7 /* ... */ 8 plugins: [ 9 // After transforms... 10 renameExtensions({ 11 include: ['**/*.ts', '**/*.vue'], 12 mappings: { 13 '.vue': '.vue.js', 14 '.ts': '.js', 15 }, 16 }) 17 ], 18},
1export interface IRenameExtensionsOptions { 2 /** 3 * Files to include for potential renames. 4 * Also denotes files of which may import a renamed module in 5 * order to update their imports. 6 */ 7 include?: Array<string | RegExp> | string | RegExp | null; 8 9 /** 10 * Files to explicitly exclude 11 */ 12 exclude?: Array<string | RegExp> | string | RegExp | null; 13 14 /** 15 * Generate source maps for the transformations. 16 */ 17 sourceMap?: boolean; 18 19 /** 20 * Babel plugins to use for parsing. Defaults to: 21 * `dynamicImport`, `classProperties`, `objectRestSpread` 22 * 23 * For a full list visit https://babeljs.io/docs/en/babel-parser#plugins 24 */ 25 parserPlugins?: ParserPlugin[]; 26 27 /** 28 * Object describing the transformations to use. 29 * IE. Input Extension => Output Extensions. 30 * Extensions should include the dot for both input and output. 31 */ 32 mappings: Record<string, string>; 33}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
7 existing vulnerabilities detected
Details
Reason
Found 2/12 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
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
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-07-14
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