Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lunaperegrina/star-wars-starships

This CLI tool calculates MGLT measurements, used in the Star Wars franchise!
https://github.com/lunaperegrina/star-wars-starships

api nodejs starwars-api typescript

Last synced: about 1 month ago
JSON representation

This CLI tool calculates MGLT measurements, used in the Star Wars franchise!

Awesome Lists containing this project

README

        









🚀 Star Wars Starships 🚀


This CLI tool calculates MGLT measurements, used in the Star Wars franchise!

## 📦 Installation:

👀 I'm assuming you have [Git](https://git-scm.com/) and [NodeJS](https://nodejs.org/en/) in your system.

🥰 I used pnpm in this project, so type: (if you don't have it installed)

```bash
npm install -g pnpm
```

👨‍💻 Code download:

```bash
git clone https://github.com/pedroperegrinaa/technical-test-swapi.git
```

🛠 Download modules:

```bash
pnpm install
```
## ⌨ CLI

💜 Use:

```bash
sucrase-node src/index.ts distance 1000000
```

💚 This is the expected return:

```bash

:::::::::::::::::::::: ::::::::: ::: ::: ::: ::::::::: ::::::::
:+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+::+: :+:
+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:++:+
+#++:++#++ +#++#++:++#++:+#++:++#: +#+ +:+ +#++#++:++#++:+#++:++#: +#++:++#++
+#+ +#++#+ +#++#+ +#+ +#+ +#+#+ +#++#+ +#++#+ +#+ +#+
#+# #+# #+##+# #+##+# #+# #+#+# #+#+# #+# #+##+# #+##+# #+#
######## ###### ###### ### ### ### ### ###### ### ########

:::::::::::::::::::::: ::::::::: :::::::: ::: ::::::::::::::::::::::: ::::::::
:+: :+: :+: :+: :+: :+: :+::+: :+::+: :+: :+: :+: :+::+: :+:
+:+ +:+ +:+ +:+ +:+ +:++:+ +:+ +:+ +:+ +:+ +:++:+
+#++:++#++ +#++#++:++#++:+#++:++#: +#++:++#+++#++:++#++ +#+ +#++:++#+ +#++:++#++
+#+ +#++#+ +#++#+ +#+ +#++#+ +#+ +#+ +#+ +#+
#+# #+# #+##+# #+##+# #+##+# #+##+# #+# #+# #+# #+# #+#
######## ###### ###### ### ######## ### ################# ########

🚀 Starship: CR90 corvette
⌛ Time: 1 year
⛽ Ressuplies: 1

🚀 Starship: Star Destroyer
⌛ Time: 2 years
⛽ Ressuplies: 0

🚀 Starship: Sentinel-class landing craft
⌛ Time: 1 month
⛽ Ressuplies: 19

...
...
...

```