cpanel-zone-file

0.0.0 • Public • Published

cpanel-zone-file

Export DNS Zone from Cpanel

Install

$ npm install cpanel-zone-file

Usage

import cpanelZoneFile from 'cpanel-zone-file';
import cpanelZoneData from 'cpanel-api-response';

// Simple
cpanelZoneExport(cpanelZoneData);

// Specify domain
cpanelZoneExport(cpanelZoneData, {domain: 'example.com'});

API

cpanelZoneFile(json, options?)

json

Type: Object

JSON data from Cpanel

options

Type: object

domain

Type: string
Default: ''

Specify a domain for the zone file

datetime

Type: string
Default: new Date().toISOString()

Specify a datetime for the zone file, defaults to current date

Readme

Keywords

Package Sidebar

Install

npm i cpanel-zone-file

Weekly Downloads

2

Version

0.0.0

License

MIT

Unpacked Size

3.22 kB

Total Files

4

Last publish

Collaborators

  • johnie