This is currently a fork of the now-client with the intention of being able to be run in both node and the browser (and adds more semicolons).
$ npm install --save now-client-isomorphic
Class wrapper around Zeit's 𝚫 now API
Parameters
-
token
string
Returns all current deployments under the account
Returns Promise<Array<{uid: string, name: string, url: string, created: string}>>
Returns single deployment data
Parameters
-
deploymentId
string
Returns Promise<{uid: string, host: string, state: string, stateTs: string}>
Creates deployment
Parameters
-
data
{package: string}
Returns Promise<{uid: string, host: string, state: string}>
Deletes specific deployment
Parameters
-
deploymentId
string
Gets list of files from deployment
Parameters
-
deploymentId
string
Returns Promise<Array<Object>>
Gets file data for specific file id
Parameters
Returns list of domains registered
Returns Promise<Array<Object>>
Ability to add a domain
Parameters
Delete a previously registered domain name from now
Parameters
-
name
string
Get a list of DNS records created for a domain name
Parameters
-
domain
string
Create a DNS record for a domain
Parameters
Returns Promise<{uid: string}>
Delete a DNS record created for a domain name
Parameters
Retrieves a list of certificates issued for the authenticating user
Parameters
-
cn
string
Issue a new certification
Parameters
-
cn
string
Renew a new certification
Parameters
-
cn
string
Replace an existing or create a new certificate entry with a user-supplied certificate
Parameters
Delete an existing certificate entry
Parameters
-
cn
string
Retrieves all of the active now aliases for the authenticating user
Parameters
-
id
string?
Creates a new alias for the deployment
Parameters
Delete an alias by id
Parameters
-
id
string
Retrieves all of the active now secrets
Creates a new secret
Parameters
Edit the name of a user's secret
Parameters
Delete a user's secret.
Parameters
-
id
string