# nanofunction

> ## Introduction

Latest version **1.1.5** (published 2018-10-10) · ISC license · 0 weekly downloads

## Install

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

Provides the command `nanofunction`.

## 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.1.5 |
| Published | 2018-10-10 |
| First published | 2018-10-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | mkhizeryounas |
| Keywords | nanofunction, microservice, API, serverless, functions, service |

## Links

- npm: https://www.npmjs.com/package/nanofunction
- Repository: https://github.com/mkhizeryounas/nanofunction
- Homepage: https://github.com/mkhizeryounas/nanofunction#readme
- Issues: https://github.com/mkhizeryounas/nanofunction/issues
- npm.io page: https://npm.io/package/nanofunction

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [express](https://npm.io/package/express.md) ^4.16.3
- [commander](https://npm.io/package/commander.md) ^2.18.0
- [portfinder](https://npm.io/package/portfinder.md) ^1.0.17
- [require-reload](https://npm.io/package/require-reload.md) ^0.2.2

## Recent versions

- 1.1.5 (latest) — 2018-10-10
- 1.1.4 — 2018-10-09
- 1.1.3 — 2018-10-09
- 1.1.2 — 2018-10-05
- 1.1.1 — 2018-10-05
- 1.1.0 — 2018-10-05
- 1.0.12 — 2018-10-05
- 1.0.11 — 2018-10-05
- 1.0.10 — 2018-10-05
- 1.0.9 — 2018-10-05
- 1.0.8 — 2018-10-05
- 1.0.7 — 2018-10-05
- 1.0.6 — 2018-10-05
- 1.0.5 — 2018-10-05
- 1.0.4 — 2018-10-05
- … 4 more at https://npm.io/package/nanofunction/versions

## README

# NanoFunction

## Introduction

> Asynchronous HTTP microservices using function based architecture.

## Code Samples

Create an index.js file and export a function that accepts the standard http.IncomingMessage and http.ServerResponse objects:

```
module.exports = (req, res) => {
  res.json({
    data: {
      handle: "@mkhizeryounas"
    }
  });
};
```

## Installation

```
npm install nanofunction --save
```

Next, ensure that the main property inside package.json points to your microservice (which is inside index.js in this example case) and add a start script:

```
{
  "main": "index.js",
  "scripts": {
    "start": "nanofunction index.js"
  }
}
```

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