# greenjs

> GreenJS - Add React to existing sites

Latest version **2.0.12** (published 2022-03-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install greenjs
pnpm add greenjs
yarn add greenjs
bun add greenjs
```

Provides the command `greenjs`.

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.12 |
| Published | 2022-03-10 |
| First published | 2021-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12.0.0 |
| Dependencies | 4 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 (+15 in 1 direct dependencies) |
| Install scripts | no |
| Author | Colin Chartier |
| Maintainers | greenframework |

## Links

- npm: https://www.npmjs.com/package/greenjs
- Repository: https://github.com/ColinChartier/hello-world
- Homepage: https://github.com/webappio/greenjs
- Issues: https://github.com/ColinChartier/hello-world/issues
- npm.io page: https://npm.io/package/greenjs

## Dependencies (4)

- [vite](https://npm.io/package/vite.md) ^2.8.3
- [minimist](https://npm.io/package/minimist.md) ^1.2.5
- [@vitejs/plugin-react](https://npm.io/package/@vitejs/plugin-react.md) ^1.2.0
- [http-proxy-middleware](https://npm.io/package/http-proxy-middleware.md) ^2.0.3

## Recent versions

- 2.0.12 (latest) — 2022-03-10
- 2.0.11 — 2022-03-03
- 2.0.9 — 2022-03-02
- 2.0.8 — 2022-03-02
- 2.0.7 — 2022-03-01
- 2.0.6 — 2022-03-01
- 2.0.5 — 2022-02-28
- 2.0.4 — 2022-02-24
- 2.0.3 — 2022-02-23
- 2.0.2 — 2022-02-23
- 2.0.1 — 2022-02-23
- 1.1.6 — 2022-01-26
- 1.1.5 — 2022-01-24
- 1.1.4 — 2022-01-24
- 1.1.3 — 2022-01-24
- … 11 more at https://npm.io/package/greenjs/versions

## README

greenjs
=================

GreenJS CLI

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g greenjs
$ greenjs COMMAND
running command...
$ greenjs (--version)
greenjs/2.0.9 linux-x64 node-v16.13.2
$ greenjs --help [COMMAND]
USAGE
  $ greenjs COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`greenjs build`](#greenjs-build)
* [`greenjs help [COMMAND]`](#greenjs-help-command)
* [`greenjs start`](#greenjs-start)

## `greenjs build`

Make a production build of the project

```
USAGE
  $ greenjs build [-f <value>]

FLAGS
  -f, --from=<value>  Whom is saying hello

DESCRIPTION
  Make a production build of the project

EXAMPLES
  $ greenjs build
  Source has been written to the dist/ folder!
```

_See code: [dist/commands/build.ts](https://github.com/ColinChartier/hello-world/blob/v2.0.9/dist/commands/build.ts)_

## `greenjs help [COMMAND]`

Display help for greenjs.

```
USAGE
  $ greenjs help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for greenjs.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.11/src/commands/help.ts)_

## `greenjs start`

Start a development server for the project

```
USAGE
  $ greenjs start [-h <value>] [-p <value>] [-u <value>]

FLAGS
  -h, --host=<value>           Which address to listen to
  -p, --port=<value>           Which port to listen to
  -u, --upstream-addr=<value>  Where to forward upstream requests

DESCRIPTION
  Start a development server for the project

EXAMPLES
  $ greenjs start
  Pre-bundling dependencies:
    react-dom
    @greenio/head
    @greenio/router
    react/jsx-dev-runtime
  (this will be run only when your dependencies or config have changed)
    > Local: http://localhost:3000/
    > Network: use `--host` to expose
```

_See code: [dist/commands/start.ts](https://github.com/ColinChartier/hello-world/blob/v2.0.9/dist/commands/start.ts)_
<!-- commandsstop -->

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