0.4.0 • Published 5 years ago

now-micro v0.4.0

Weekly downloads
25
License
MIT
Repository
github
Last release
5 years ago

Now Micro

Build Status coverage npm version

Proper Micro builder for Now 2.0

Purpose

As of now, @now/node lambdas resemble a lot a Micro environment, but it is just not that, which causes quite a lot of unexpected results.

Installation

yarn add now-micro micro

Gotcha: so far we found no way to inject micro dependency during the build process, so it MUST be a dependency of your lambda, thus why we added it to the above command ;)

Usage

Use now-micro in your builders on now.json:

{
  "version": 2,
  "builds": [{ "src": "file.js", "use": "now-micro" }]
}

Develop your lambdas as a fully Micro compatible function:

// ex. showing async usage and value returning (no res.end):
module.exports = async req => Promise.resolve(`Some result`)
0.4.0

5 years ago

0.3.0

5 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago