1.0.1 • Published 6 years ago
pon-task-hosts v1.0.1
pon-task-hosts
Pon task to change hosts
Installation
$ npm install pon-task-hosts --save
Usage
'use strict'
const pon = require('pon')
const ponTaskHosts = require('pon-task-hosts')
;(async () => {
let run = pon({
hosts: ponTaskHosts({
'peercdn.com': '127.0.0.1'
})
})
run('hosts')
}).catch((err) => console.error(err))
Signatures
define(bindings, options) -> function
Define task
Param | type | Description |
---|---|---|
bindings | Object | Hosts bindings |
options | Object | Optional settings |
License
This software is released under the Apache-2.0 License.
Links
1.0.1
6 years ago