Skip to content

Commit ee4bed3

Browse files
authored
Update README.md
1 parent bbf95a4 commit ee4bed3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Brute forcing conversion(translation) from C# to Javascript.
33

44
This is a personal project with purpose to learn and understand better c# and js at the same time. Many stuff is not supported and some won't. Updates will be happening when I'm using this library.(irregular)
55

6+
[Nuget package](https://www.nuget.org/packages/CSharpToJavaScript/)
7+
68
### C#
79
```csharp
810
using static CSharpToJavaScript.APIs.JS.GlobalThis;
@@ -28,19 +30,17 @@ class Test
2830
```
2931

3032
## How to use
31-
*Nuget package will be available once I figure out ~how to do docs for api(should be easy) and what to do with esmascript and how to convert to c#.~ NUGET PACKAGE SOON!*
32-
33-
- Download a library(Code-Local-Download ZIP)
34-
- Create c# project or use existed one
35-
- Follow [this](https://learn.microsoft.com/en-us/dotnet/core/tutorials/library-with-visual-studio?pivots=dotnet-7-0#add-a-project-reference) to add reference to project
36-
- In the Main method add:
33+
- 1 Create c# project or use existed one
34+
- 2 Install [nuget](https://www.nuget.org/packages/CSharpToJavaScript/) or Download a specific version, visit [releases](https://github.com/TiLied/CSharpToJavaScript/releases) or Download a master(Code-Local-Download ZIP)
35+
- 3 Skip this if using Nuget package. Follow [this](https://learn.microsoft.com/en-us/dotnet/core/tutorials/library-with-visual-studio?pivots=dotnet-7-0#add-a-project-reference) to add reference to project.
36+
- 4 In the Main method add:
3737
```csharp
3838
Assembly assembly = Assembly.GetExecutingAssembly();
3939
CSTOJS cstojs = new(assembly);
4040
cstojs.Generate2Async("FULL PATH TO CSHARP FILE YOU WHAT TO CONVERT");
4141
```
42-
- Run program and file will be generated in output path(default is "Directory.GetCurrentDirectory()") with name "main.js"(default)
43-
- See below for simple example "HelloWorld"
42+
- 5 Run program and file will be generated in output path(default is "Directory.GetCurrentDirectory()") with name "main.js"(default)
43+
- 6 See below for simple example "HelloWorld"
4444

4545
## Example "HelloWorld"
4646
Program.cs

0 commit comments

Comments
 (0)