{"_id":"@aylz10/now-static-bin","name":"@aylz10/now-static-bin","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@aylz10/now-static-bin","version":"0.0.1","description":"ZEIT Now v2.0 static binary builder","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/aylz10/now-static-bin.git"},"author":"","license":"MIT","bugs":{"url":"https://github.com/aylz10/now-static-bin/issues"},"homepage":"https://github.com/aylz10/now-static-bin","dependencies":{"@now/build-utils":"^0.4.29","object-hash":"^1.3.1"},"gitHead":"8ec8a4c229b94bfcc82727b2248e11ac8aa45c89","_id":"@aylz10/now-static-bin@0.0.1","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mgtQzAZGHdNJFU3E7fvgCdMOAPlCzuOESV9mqn92RTynb69nB0OuHqXZ63u0mqIT8OrQdB+2QWI3TNfZ5K2kkQ==","shasum":"811494f46c9f6da9f01a0021c6071d9028cad182","tarball":"https://registry.npmjs.org/@aylz10/now-static-bin/-/now-static-bin-0.0.1.tgz","fileCount":6,"unpackedSize":6781768,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjliRpGEZKzRkogr9oQBIz3ykOOoRFwrVpz9qURq51PAIhAKWk9tAPnajez2G3zLk6JI0t96019C5rpuyOQmZ9rknV"}]},"_npmUser":{"name":"aylz10","email":"aylz10@126.com"},"directories":{},"maintainers":[{"name":"aylz10","email":"aylz10@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/now-static-bin_0.0.1_1706549796964_0.08535321121237271"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-29T17:36:36.845Z","0.0.1":"2024-01-29T17:36:37.227Z","modified":"2024-01-29T17:36:37.448Z"},"maintainers":[{"name":"aylz10","email":"aylz10@126.com"}],"description":"ZEIT Now v2.0 static binary builder","homepage":"https://github.com/aylz10/now-static-bin","repository":{"type":"git","url":"git+https://github.com/aylz10/now-static-bin.git"},"bugs":{"url":"https://github.com/aylz10/now-static-bin/issues"},"license":"MIT","readme":"# now-static-bin\r\n\r\nThis package provides a\r\n[builder](https://zeit.co/docs/v2/deployments/builders/overview#when-to-use-builders)\r\nfor Zeit's [Now 2.0](https://zeit.co/blog/now-2) offering that enables running\r\narbitrary executables in the generated lambdas.\r\n\r\n## Usage\r\n\r\nYour `now.json` `\"builds\"` section should look something like this:\r\n\r\n## Example\r\n\r\n**Note**: don't forget to add `\"version\": 2` in your `now.json` file to use Now\r\n2.0 explicitly.\r\n\r\n```json\r\n{\r\n  \"builds\": [\r\n    {\r\n      \"src\": \"*.exe\",\r\n      \"use\": \"now-static-bin\",\r\n      \"config\": {\r\n        \"port\": 4000\r\n      }\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n### Other Examples\r\n\r\nMake sure to check the [`examples`](./examples) folder in this repo for examples\r\nin different programming languages. Below is a table that details their\r\nimplementation choices.\r\n\r\nThey are also deployed on every commit to master and the latest build lives in\r\n[`now-static-bin-examples.now.sh`](https://now-static-bin-examples.now.sh/).\r\n\r\n| Example    | Demo     | Description     |\r\n|:---------- |:---------|:----------------|\r\n| [OCaml](/examples/bintry) | [https://now-static-bin-examples.now.sh/examples/bintry/main.exe](https://now-static-bin-examples.now.sh/examples/bintry/main.exe) | An OCaml static binary example server (no source available yet) |\r\n| [Rust](/examples/rust) | [https://now-static-bin-examples.now.sh/examples/rust/server.exe](https://now-static-bin-examples.now.sh/examples/rust/server.exe) | A Rust [simple-server](https://github.com/steveklabnik/simple-server) example |\r\n| [Reason](/examples/reason) | [https://now-static-bin-examples.now.sh/examples/reason/main.exe](https://now-static-bin-examples.now.sh/examples/reason/main.exe) | A [Reason](https://reasonml.github.io/) [Cohttp](https://github.com/mirage/ocaml-cohttp) server example that outputs request information |\r\n\r\n## Configuration Options\r\n\r\n- `port`: the port that the deployed server listens on. Defaults to 8080.\r\n- `timeout`: the timeout that the launcher waits for your server to start\r\n  listening on the specified port. Defaults to 50ms.\r\n\r\n## Limitations\r\n\r\n- Currently only HTTP servers are supported.\r\n\r\n## Copyright and License\r\n\r\nCopyright © 2018 António Nuno Monteiro.\r\n\r\nDistributed under the MIT License (see [LICENSE](./LICENSE)).\r\n","readmeFilename":"README.md"}