# @javila-jsnote/local-client

> _This project was built by following along with a [Typescript / React course on Udemy](https://www.udemy.com/course/react-and-typescript-build-a-portfolio-project/) by [Stephen Grider](https://www.udemy.com/user/sgslo/)._

Latest version **1.0.4** (published 2021-05-06) · 0 weekly downloads

## Install

```sh
npm install @javila-jsnote/local-client
pnpm add @javila-jsnote/local-client
yarn add @javila-jsnote/local-client
bun add @javila-jsnote/local-client
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-05-06 |
| First published | 2021-05-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | javila35 |

## Links

- npm: https://www.npmjs.com/package/@javila-jsnote/local-client
- npm.io page: https://npm.io/package/@javila-jsnote/local-client

## Recent versions

- 1.0.4 (latest) — 2021-05-06
- 1.0.1 — 2021-05-05
- 1.0.0 — 2021-05-05

## README

# In Browser Code Executor

_This project was built by following along with a [Typescript / React course on Udemy](https://www.udemy.com/course/react-and-typescript-build-a-portfolio-project/) by [Stephen Grider](https://www.udemy.com/user/sgslo/)._

![image](https://res.cloudinary.com/deijyaaid/image/upload/v1620238345/npm_screenshot_dfgk53.png)

## Running the app

The easiest way is to run this application is using npx in your terminal. Your code and markdown will be saved to a file _`notebook.js` by defualt_ in the directory you run this command from. _You may need to update your version of [npm](https://github.com/npm/cli#installation)._

```
npx @javila-jsnote/cli serve
```

**CLI Flags**

- Port flag
  - `-p <number>`
  - Override the default port
- `<filename>.js`
  - Override the default name for the ouput file.

### Learned

- Use [ESbuild Web Asssembly API](https://esbuild.github.io/) to bundle Javascript, JSX, and CSS code in a browser
- Importing NPM packages in browser by using the [Unpkg](https://unpkg.com/) API
- Cache NPM packages using IndexDB with [localforage](https://localforage.github.io/localForage/)
- Execute code in browser using an iFrame
- Publish a suite of packages to npm

---
_Source: https://npm.io/package/@javila-jsnote/local-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
