1.1.5 • Published 7 years ago

nanofunction v1.1.5

Weekly downloads
21
License
ISC
Repository
github
Last release
7 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

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago