This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

now-client-isomorphic

0.0.3 • Public • Published

Isomorphic 𝚫 now client

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

API

Now

Class wrapper around Zeit's 𝚫 now API

Parameters

getDeployments

Returns all current deployments under the account

Returns Promise<Array<{uid: string, name: string, url: string, created: string}>>

getDeployment

Returns single deployment data

Parameters

Returns Promise<{uid: string, host: string, state: string, stateTs: string}>

createDeployment

Creates deployment

Parameters

Returns Promise<{uid: string, host: string, state: string}>

deleteDeployment

Deletes specific deployment

Parameters

Returns Promise<Object>

getFiles

Gets list of files from deployment

Parameters

Returns Promise<Array<Object>>

getFile

Gets file data for specific file id

Parameters

Returns Promise<Object>

getDomains

Returns list of domains registered

Returns Promise<Array<Object>>

addDomain

Ability to add a domain

Parameters

deleteDomain

Delete a previously registered domain name from now

Parameters

getDomainRecords

Get a list of DNS records created for a domain name

Parameters

addDomainRecord

Create a DNS record for a domain

Parameters

Returns Promise<{uid: string}>

deleteDomainRecord

Delete a DNS record created for a domain name

Parameters

getCertificates

Retrieves a list of certificates issued for the authenticating user

Parameters

createCertificate

Issue a new certification

Parameters

renewCertificate

Renew a new certification

Parameters

replaceCertificate

Replace an existing or create a new certificate entry with a user-supplied certificate

Parameters

deleteCertificate

Delete an existing certificate entry

Parameters

getAliases

Retrieves all of the active now aliases for the authenticating user

Parameters

createAlias

Creates a new alias for the deployment

Parameters

deleteAlias

Delete an alias by id

Parameters

getSecrets

Retrieves all of the active now secrets

createSecret

Creates a new secret

Parameters

renameSecret

Edit the name of a user's secret

Parameters

deleteSecret

Delete a user's secret.

Parameters

Package Sidebar

Install

npm i now-client-isomorphic

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • mdaverde