Export DNS Zone from Cpanel
$ npm install cpanel-zone-file
import cpanelZoneFile from 'cpanel-zone-file';
import cpanelZoneData from 'cpanel-api-response';
// Simple
cpanelZoneExport(cpanelZoneData);
// Specify domain
cpanelZoneExport(cpanelZoneData, {domain: 'example.com'});
Type: Object
JSON data from Cpanel
Type: object
Type: string
Default: ''
Specify a domain for the zone file
Type: string
Default: new Date().toISOString()
Specify a datetime for the zone file, defaults to current date