npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@southworks/codeverter

v2.1.0

Published

Convert TypeScript code into different languages

Downloads

6

Readme

Welcome to Codeverter!

Codeverter is a tool to convert a TypeScript source file (*.ts) into different languages (go, c# or Visual Basic by the moment).

Codeverter Build Codeverter tests Codeverter Playground NPM GH Package

Playground

If you want to try it, click here!

Installing

NPM

Public registry

npm install -g @southworks/codeverter

Locally

cd ./path-to-codeverter
npm run build:prod
npm install -g

Building

Prerequisites

Dependencies

In order to build the project you must install the required dependencies by running the following command npm install

Compilation

The project is written in TypeScript so you need to call the tsc compiler. To start the compilation process use the command npm run build once finished you will have all the final JavaScript files at ./out folder.

For production use the command npm run build:prod

Testing

To run the available test suites run the command npm test

  • The test framework is Jest so you can use any flag you want. For example: npm test -- -t "constant"

Usage

Command 'cdv'

cdv is the command to execute the tool

For example: cdv --src xxx --lang zzz --dest yyy <path>

Args

--src: Path to the source file or directory.

  • Default value: .

--lang: Target language.

  • Values: csharp | go | vb
  • Default value: go

--template: Custom template to perform the transformation. The extension must be '.t' followed by the language extension, for example: csharp => .tcs.

  • Values: Path to the custom tempate
  • Default value: ''

--dest: Destination

  • Values: console | file
    • file has an extra parameter <destination path>
  • Default value: console

Support

Fully documented support at Wiki

Constants/Variables

||C#|GO|Visual Basic| |-|-|-|-| |Global|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| |Function/Constructor body|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|

Enums

||C#|GO|Visual Basic| |-|-|-|-| |Numeric|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| |String|:heavy_check_mark:|:heavy_check_mark:|:x:| |Implicit|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|

Interfaces

||C#|GO|Visual Basic| |-|-|-|-| |Members|:heavy_check_mark:|:x:|:heavy_check_mark:| |Method/Functions|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| |Inheritance|:heavy_check_mark:|:x:|:heavy_check_mark:| |Implementation|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|

Classes

||C#|GO|Visual Basic| |-|-|-|-| |Inheritance|:heavy_check_mark:|:heavy_check_mark:*|:heavy_check_mark:| |Interfaces|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| |Visibility|:heavy_check_mark:|:heavy_check_mark:**|:heavy_check_mark:| |Static|P|P||

*In a go way, using composition

**Using naming conventions

Constructors

||C#|GO|Visual Basic| |-|-|-|-| |Visibility|:heavy_check_mark:|:x:|:heavy_check_mark:| |Parameters|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| |Body|AS COMMENT|AS COMMENT|AS COMMENT|

Properties

||C#|GO|Visual Basic| |-|-|-|-| |Visibility|:heavy_check_mark:|:heavy_check_mark:*|:heavy_check_mark:|

*Naming convention for pubic or private, protected is considered private

Methods/Functions

||C#|GO|Visual Basic| |-|-|-|-| |Visibility|:heavy_check_mark:|:heavy_check_mark:*|:heavy_check_mark:| |Parameters|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| |Return type|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| |Default return value|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|

*Naming convention for pubic or private, protected is considered private

**As functions