
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@darabonba/csharp-generator
Advanced tools
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:
npm install @darabonba/csharp-generator
'use strict';
const path = require('path');
const fs = require('fs');
const Parser = require('@darabonba/parser');
const CSGenerator = require('@darabonba/csharp-generator');
const sourceDir = "<Darabonda package directory>";
const outputDir = "<Generate output directory>";
// generate ast data by Parser
let packageMetaFilePath = path.join(sourceDir, 'Darafile');
let packageMeta = JSON.parse(fs.readFileSync(packageMetaFilePath, 'utf8'));
let mainFile = path.join(sourceDir, packageMeta.main);
let ast = Parser.parse(fs.readFileSync(mainFile, 'utf8'), mainFile);
// initialize generator
let generatorConfig = {
...packageMeta,
pkgDir: sourceDir,
outputDir
};
let generator = new CSGenerator(generatorConfig);
// generate csharp code by generator
generator.visit(ast);
// 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.
2.0.1 - 2025-06-27
Fix: delete extra .Value of virtualVariable. Fix: use fully qualified name for builtin class in darabonba to avoid conflict.
FAQs
The darabonba generator for CSharp
The npm package @darabonba/csharp-generator receives a total of 18 weekly downloads. As such, @darabonba/csharp-generator popularity was classified as not popular.
We found that @darabonba/csharp-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.