Skip to content

samtgarson/now-latest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

now-latest Get the latest deployment for your now.sh app

Build status XO code style

Usage

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 for the basics on setting up this application for development.

About

Get the latest deployment for your now.sh app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published