Gathering detailed insights and metrics for babel-plugin-inline-json-import
Gathering detailed insights and metrics for babel-plugin-inline-json-import
Gathering detailed insights and metrics for babel-plugin-inline-json-import
Gathering detailed insights and metrics for babel-plugin-inline-json-import
npm install babel-plugin-inline-json-import
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10 Stars
16 Commits
6 Forks
2 Watchers
1 Branches
4 Contributors
Updated on Apr 06, 2021
Latest Version
0.3.2
Package Id
babel-plugin-inline-json-import@0.3.2
Size
5.50 kB
NPM Version
6.9.0
Node Version
11.10.1
Published on
Mar 07, 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
1
6
A babel pre-processor that inlines all imports of JSON files straight into your JavaScript files.
Given the following JSON file:
1{ 2 "foo": "bar" 3}
The plugin will transform the following statement:
1import json from './path/to/file.json';
or
to:
1const json = { foo: "bar" };
Simple as that! Both require
and import
are supported.
Install the plugin through npm
, you will also need babel
installed for
obvious reasons:
1$ npm install --save-dev babel-plugin-inline-json-import
Add babel-plugin-inline-json-import
to the list of plugins. If you are using a
.babelrc
file, the file should have an entry that looks like this:
1{ 2 "plugins": [ 3 ["inline-json-import", {}] 4 ] 5}
This should work straight out of the box without any configuration.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
This project is licensed under the MIT License - see the LICENSE file for details
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license 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
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
41 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