1.0.1 • Published 6 years ago

pon-task-hosts v1.0.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
6 years ago

pon-task-hosts

Build Status npm Version JS Standard

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

ParamtypeDescription
bindingsObjectHosts bindings
optionsObjectOptional settings

License

This software is released under the Apache-2.0 License.

Links

1.0.1

6 years ago