# @bulcane/api-maker

> a simple api maker npm package

Latest version **1.0.6** (published 2022-07-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install @bulcane/api-maker
pnpm add @bulcane/api-maker
yarn add @bulcane/api-maker
bun add @bulcane/api-maker
```

## 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.6 |
| Published | 2022-07-15 |
| First published | 2022-07-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | bulcane |

## Links

- npm: https://www.npmjs.com/package/@bulcane/api-maker
- Repository: https://github.com/Bulcanolol/api-maker
- Homepage: https://github.com/Bulcanolol/api-maker#readme
- Issues: https://github.com/Bulcanolol/api-maker/issues
- npm.io page: https://npm.io/package/@bulcane/api-maker

## Dependencies (2)

- [express](https://npm.io/package/express.md) ^4.18.1
- [request](https://npm.io/package/request.md) ^2.88.2

## Recent versions

- 1.0.6 (latest) — 2022-07-15
- 1.0.5 — 2022-07-10
- 1.0.4 — 2022-07-09
- 1.0.3 — 2022-07-09
- 1.0.2 — 2022-07-09
- 1.0.1 — 2022-07-09

## README

![api-maker](https://cdn.discordapp.com/attachments/985865573722382336/995382633443901531/api-maker-img.png)
# api-maker

api maker is a simple api creator. using express

## Installation


```bash
npm install @bulcane/api-maker
```

## Example

```javascript
const api_maker = require("@bulcane/api-maker") //import the package
let api = new api_maker.Api();

api.runOn(3200); //run the api on the selected port

let data = {
    name: "juan",
    id: 1023021
} //the data you prefer to insert in the api

api.write(data); //write in the page your data

api.onStart("Api started") //the message left after the server is online
api.server.run(); //start the server (express)
```



## Other examples
```javascript
const api_maker = require("@bulcane/api-maker") //import the package
let api = new api_maker.Api();

api.runOn(3000); //run the api on the selected port

let data = {
    name: "john",
    id: "hello"
} //the json you prefer to insert in the api

api.write(data) //write in the page your data

api.onStart("SERVER START") //the message left after the server is online


let 2ndData = {
   pro: true
}
api.newPage({
   pageName: "helloworld",
   data: 2ndData
})

//simple js example
if(1 < 30) {
   api.write(data)
} else {
   console.log("no")
}
api.server.run(); //run the server (express)


```

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