Gathering detailed insights and metrics for @darabonba/go-generator
Gathering detailed insights and metrics for @darabonba/go-generator
Gathering detailed insights and metrics for @darabonba/go-generator
Gathering detailed insights and metrics for @darabonba/go-generator
npm install @darabonba/go-generator
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
18 Stars
131 Commits
6 Forks
3 Watchers
25 Branches
11 Contributors
Updated on Jun 27, 2025
Latest Version
2.0.9
Package Id
@darabonba/go-generator@2.0.9
Unpacked Size
459.98 kB
Size
75.78 kB
File Count
170
NPM Version
8.6.0
Node Version
18.0.0
Published on
Jun 27, 2025
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
2
English | 简体中文
Darabonba Code Generator was designed to work in Node.js. The preferred way to install the Generator is to use the NPM package manager. Simply type the following into a terminal window:
1npm install @darabonba/go-generator
1'use strict'; 2 3const path = require('path'); 4const fs = require('fs'); 5 6const parser = require('@darabonba/parser'); 7const Generator = require('@darabonba/go-generator'); 8 9const sourceDir = "<Darabonda package directory>"; 10const outputDir = "<Generate output directory>"; 11 12// generate AST data by Parser 13let packageMetaFilePath = path.join(sourceDir, 'Darafile'); 14let packageMeta = JSON.parse(fs.readFileSync(packageMetaFilePath, 'utf8')); 15let mainFile = path.join(sourceDir, packageMeta.main); 16let ast = parser.parse(fs.readFileSync(mainFile, 'utf8'), mainFile); 17 18// initialize generator 19let generatorConfig = { 20 ...packageMeta, 21 pkgDir: sourceDir, 22 outputDir 23}; 24 25let generator = new Generator(generatorConfig); 26 27// generate go code by generator 28generator.visit(ast); 29 30// The execution result will be output in the 'outputDir'
Opening an Issue, Issues not conforming to the guidelines may be closed immediately.
Detailed changes for each release are documented in the release notes.
Apache-2.0 Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
No vulnerabilities found.
Reason
12 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 7
Details
Reason
Found 13/21 approved changesets -- score normalized to 6
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
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