8000 GitHub - Hatmic/VarConverter: Translate the input variable names and variable values into code in various languages.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Translate the input variable names and variable values into code in various languages.

License

Notifications You must be signed in to change notification settings

Hatmic/VarConverter

Repository files navigation

VarJsConverter

Introduction

Translate the input variable names and variable values into code in various languages.

In the first line of input.txt, you should enter either js, ts or py to indicate whether you want to output as a JavaScript, TypeScript or Python file.

Write data in input.txt, translating the input variable names and variable values into JavaScript code, for example, varName varNum, such as hatmic 2009 indicating the declaration of the hatmic variable and assigning it the value 2009.

介绍

将输入的变量名和变量值翻译成各种语言的代码。

在 input.txt 的第一行,您应该输入 jsts,以指明您希望输出为 JavaScript 文件,TypeScript 文件还是 Python 文件。

input.txt 中写入数据,将输入的变量名和变量值翻译成 JavaScript 代码,例如 varName varNum,例如 hatmic 2009 表示声明 hatmic 变量并赋值为 2009

Input Output Case

#1

Input (in input.txt)

js
hatmic 2009

Output (in output.js)

let hatmic = 2009;
#2

Input (in input.txt)

js
hatmic 2009
hat mic
code cpp
code c
code javascript
code python
code dart

Output (in output.js)

let hatmic = 2009;
let hat = "mic";
let code = "cpp";
code = "c";
code = "javascript";
code = "python";
code = "dart";
#3

Input (in input.txt)

ts
hatmic 2009
hat mic
code cpp
code c
code javascript
code python
code dart

Output (in output.ts)

let hatmic = 2009;
let hat = "mic";
let code = "cpp";
code = "c";
code = "javascript";
code = "python";
code = "dart";

About

Translate the input variable names and variable values into code in various languages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0