https://github.com/samtgarson/now-latest
Get the latest deployment for your now.sh app
https://github.com/samtgarson/now-latest
Last synced: 5 months ago
JSON representation
Get the latest deployment for your now.sh app
- Host: GitHub
- URL: https://github.com/samtgarson/now-latest
- Owner: samtgarson
- Created: 2017-04-16T10:37:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-16T12:19:43.000Z (about 9 years ago)
- Last Synced: 2025-10-21T21:19:14.653Z (8 months ago)
- Language: JavaScript
- Size: 50.8 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
**now-latest** Get the latest deployment for your now.sh app
[](https://circleci.com/gh/samtgarson/engagement)
[](https://github.com/sindresorhus/xo)
### Usage
```js
import nowLatest from 'now-latest'
const name = 'my-application-name'
const token = process.env.NOW_TOKEN // will use token from ~/.now.json if not provided
const deployment = nowLatest({ name, token })
console.log(deployment)
/*
* {
* "uid": "6RMU8CJGKtXmdHDjN0YihTrn",
* "name": "my-application-name",
* "url": "my-application-name-pffgtzmjns.now.sh",
* "created": "1486807761884",
* "state": "READY",
* "scale": {
* "current": 1,
* "min": 0,
* "max": 1
* }
* }
*/
```
### Contribute
Take a look at [micro-starter](https://github.com/samtgarson/micro-starter) for the basics on setting up this application for development.