# code-station

Latest version **1.0.4** (published 2022-08-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install code-station
pnpm add code-station
yarn add code-station
bun add code-station
```

Provides the command `code-station`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2022-08-16 |
| First published | 2022-08-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 909.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ernestleung52 |

## Links

- npm: https://www.npmjs.com/package/code-station
- npm.io page: https://npm.io/package/code-station

## Dependencies (1)

- [@code-station/local-client](https://npm.io/package/@code-station/local-client.md) ^1.0.4

## Recent versions

- 1.0.4 (latest) — 2022-08-16
- 1.0.3 — 2022-08-16
- 1.0.2 — 2022-08-15
- 1.0.1 — 2022-08-15
- 1.0.0 — 2022-08-15

## README

## 📝 Code-Station

<!-- ![CodeStation Logo](/packages/local-client/public/logo192.png "logo") -->
<p align="center">
  <img src="/packages/local-client/public/logo192.png" width=50% height=50% >
  <img src="/packages/local-client/public/ui-screenshot.png" >
</p>

### Brief

A lightweight, efficient, and interactive coding environment. You can write JavaScript, see it, execute it, write comprehensive documentation using markdown, and share it with others.

### Features

- Click any text cell (including this one) to edit it
- The code in each code editor is all joined together into one file. If you define a variable in cell #1, you can refer to it in any following cells
- You can show any React components, string, number, or anything else by calling the `show` function. This is a function built into the environment. Call show multiple times to show multiple values
- Re-order or delete cells using the buttons on the top right
- Add new cells by hovering on the divider between each cell

### Installation

All of your changes get saved to the file you opened Code-Station with. You can run `npx code-station serve test.js`, all of the text and code you write will be saved to the `test.js` file automatically.

`npx code-station serve <file name> -p <port number>` <br>
ex. `npx code-station serve notebook.js -p 4000` <br>
_<> optional_

### Development

- Do not use `npm` to install new packages, use `lerna add` to install the package to a specific directory <br>
  `lerna add <package>[@version] [--dev] [--exact] [--peer] --scope=[directory]` <br>
  ex. `lerna add react@18.2.0 --exact --scope=@code-station/local-client`

- Using ESBuild to bundle entire CLI. <br>
  `cd` to the `cli` directory and run <br>
  `npm run prepublishOnly`

- Start up proxy server. <br>
  `cd` to the `cli` directory and run <br>
  `node index.js serve`

- Publishing to NPM <br>
  Sign in to npm <br>
  `npm login` <br>
  Run below code in root directory to publish to npm <br>
  _`cli` folder depends on `local-client`, you need to create an organization on npm to publish three packages"_ <br>
  `lerna publish --no-push`

- For any additional inquires, feel free to contact me on [LinkedIn](https://www.linkedin.com/in/ernestleung52/)

### Iteration Opportunities

1. More user-friendly output
2. Frontend improvement (fixed code editor height)
3. React syntax color highlighter

---

Thank you for using Code-Station! <br>
[Ernest Leung](https://www.linkedin.com/in/ernestleung52/)

---
_Source: https://npm.io/package/code-station · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
