1.1.5 • Published 6 years ago

nanofunction v1.1.5

Weekly downloads
21
License
ISC
Repository
github
Last release
6 years ago

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"
  }
}
1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago