# babel-plugin-api-over-console

> Transform CLI app to express API

Latest version **0.1.1** (published 2017-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-api-over-console
pnpm add babel-plugin-api-over-console
yarn add babel-plugin-api-over-console
bun add babel-plugin-api-over-console
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-08-29 |
| First published | 2017-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | akameco |
| Maintainers | akameco |
| Keywords | babel-plugin, cli, api, console, console.log, api-over-console |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-api-over-console
- Repository: https://github.com/akameco/babel-plugin-api-over-console
- Homepage: https://github.com/akameco/babel-plugin-api-over-console#readme
- Issues: https://github.com/akameco/babel-plugin-api-over-console/issues
- npm.io page: https://npm.io/package/babel-plugin-api-over-console

## Dependencies (2)

- [babel-template](https://npm.io/package/babel-template.md) ^6.26.0
- [babel-traverse](https://npm.io/package/babel-traverse.md) ^6.26.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2017-08-29
- 0.1.0 — 2017-08-29

## README

# babel-plugin-api-over-console [![Build Status](https://travis-ci.org/akameco/babel-plugin-api-over-console.svg?branch=master)](https://travis-ci.org/akameco/babel-plugin-api-over-console)

> transfrom to JSON Server from CLI app!!!


## Install

```
$ npm install --save-dev babel-plugin-api-over-console
```


## Usage

.babelrc

```js
{
  plugins: ["api-over-console"]
}
```

#### In

```js
console.log('hello')
```


#### Out

```js
const express = require('express');

const cors = require('cors');

const app = express();
const port = process.env.PORT || 3000;
app.use(cors());
app.get('/', (req, res) => {
  res.json('hello');
});
app.listen(port, () => {
  console.log('listening on %s', port);
});
```

## License

MIT © [akameco](http://akameco.github.io)

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