Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@leaningtech/ts2cpp
Advanced tools
A tool to generate C++ headers from typescript declaration files (.d.ts) for use with Cheerp.
Usage: ts2cpp [options]
Options:
--pretty format output files
--default-lib generate headers for the default library
--out, -o <file> path to output file
--ignore-errors ignore errors
--list-files write a list of all included .d.ts files
--verbose, -v verbose output
--verbose-progress verbose progress
--namespace <namespace> wrap output in a namespace
--no-constraints do not use std::enable_if or static_asserts
--full-names always use fully qualified names
-h, --help display help for command
git clone https://github.com/leaningtech/ts2cpp.git
cd ts2cpp
npm i && npx tsc
Or run with npx
:
npx @leaningtech/ts2cpp --help
Generating clientlib headers
mkdir -p cheerp
npx ts2cpp --default-lib --pretty
Generating headers from a custom declaration file
npx ts2cpp --pretty test.d.ts -o test.h
FAQs
TypeScript declaration to C++ header transpiler for Cheerp
The npm package @leaningtech/ts2cpp receives a total of 4 weekly downloads. As such, @leaningtech/ts2cpp popularity was classified as not popular.
We found that @leaningtech/ts2cpp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.