CLI | Dotnet tool | Core | Nuget package | Try it online!
Quick start for a CLI
To install:
dotnet tool install --global TiLied.CSTOJS_CLI
To use:
cstojs-cli setup "Output"
cstojs-cli translate
To update:
dotnet tool update --global TiLied.CSTOJS_CLI
To delete:
dotnet tool uninstall --global TiLied.CSTOJS_CLI
Using as a library
- Install nuget package or download a specific version.
- Skip this if using a Nuget package. Follow the instructions on how to add a project reference.
- In the Main method, add:
FileData file = new()
{
SourceStr = @"Console.WriteLine(""Hello world."");"
};
file = CSTOJS.Translate(file);
Console.WriteLine(file.TranslatedStr);
- Run a program
- Console output should be:
console.log("Hello world.");