Gathering detailed insights and metrics for flowconfig
Gathering detailed insights and metrics for flowconfig
Gathering detailed insights and metrics for flowconfig
Gathering detailed insights and metrics for flowconfig
npm install flowconfig
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
7 Commits
1 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Nov 23, 2019
Latest Version
1.0.3
Package Id
flowconfig@1.0.3
Size
24.59 kB
NPM Version
5.3.0
Node Version
8.6.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
3
1import {
2 ParseFlowConfig,
3 ParseFlowConfigFromFile,
4 ExtendFlowConfig,
5 ExtendFlowConfigFromFiles,
6 PrintFlowConfig,
7 PrintFlowConfigToFile,
8 GenerateFlowConfigFromFiles,
9} from 'flowconfig';
10
11// Constants
12// --------------------------------------------------------
13const FlowConfigContent1 = `
14[options]
15esproposal.class_static_fields=enable
16esproposal.class_instance_fields=enable
17`;
18
19const FlowConfigContent2 = `
20[options]
21esproposal.export_star_as=enable
22`;
23
24
25// Returns flowconfig object
26// --------------------------------------------------------
27var config = ParseFlowConfig( FlowConfigContent1 );
28// or
29var config = ParseFlowConfigFromFile( '/path/to/.flowconfig' );
30
31
32// Extend target config with other configs
33// --------------------------------------------------------
34var extendedConfig =
35 ExtendFlowConfig(
36 FlowConfigContent1,
37 FlowConfigContent2,
38 ...
39 );
40// or
41var extendedConfig =
42 ExtendFlowConfigFromFiles(
43 '/path/to/.flowconfig1',
44 '/path/to/.flowconfig2',
45 ...
46 );
47
48
49// Prints config
50// --------------------------------------------------------
51const configContent = PrintFlowConfig( config );
52// or
53PrintFlowConfigToFile( '/path/to/.flowconfig', config );
54
55
56// Generates new flowconfig from others
57// --------------------------------------------------------
58
59// with relative paths to targetPath
60GenerateFlowConfigFromFiles({
61 targetPath: '/path/to/.flowconfig',
62 configPaths: [
63 '/path/to/some/.flowconfig',
64 '/path/to/some/other/.flowconfig',
65 ...
66 ]
67});
68
69// generate as is
70GenerateFlowConfigFromFiles({
71 targetPath: '/path/to/.flowconfig',
72 configPaths: [
73 '/path/to/some/.flowconfig',
74 '/path/to/some/other/.flowconfig',
75 ...
76 ],
77 replacePathsProjectRoot: false
78});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
39 existing vulnerabilities detected
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