https://github.com/gomjellie/losttemple
pythonic javascript transpiler
https://github.com/gomjellie/losttemple
Last synced: about 2 months ago
JSON representation
pythonic javascript transpiler
- Host: GitHub
- URL: https://github.com/gomjellie/losttemple
- Owner: gomjellie
- License: mit
- Created: 2018-10-19T11:13:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T03:02:14.000Z (about 2 years ago)
- Last Synced: 2025-04-03T08:03:22.175Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 618 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LostTemple
로템 2v2 초보만@@ js와 함께

## 이게 뭐죠?
LostTemple 은 Javascript를 파이썬 처럼 쓰게 도와주는 트랜스파일러 입니다.

파이썬을 써본 사람이라면 누구나
위의 사진처럼 다른언어에서도 파이썬처럼 { } 와 ; 없이 코드를 짜고 싶어집니다.
```js
for (let i = 0; i < 10; i++) {
for (let j = 0; j < 10; j++) {
console.log(`${i} * ${j} = ${i * j}`);
}
}```
LostTemple 을 사용하여 트랜스파일하면 아래와 같이 변합니다!
↓ ↓ ↓ ↓ ↓ ↓```js
for (let i = 0; i < 10; i++) {
for (let j = 0; j < 10; j++) {
console.log(`${i} * ${j} = ${i * j}`) ;}}```
## 사용법
### 설치
```sh
npm install lost-temple -g
```### TEST
```sh
npm run test
```### 트랜스파일 하기
아래의 3가지 방법으로 hello.js를 트랜스파일 할 수 있습니다. (미완)
```sh
lost hello.js
lost hello.js -o hello.py.js
lost hello.js --output hello.py.js
```