1.0.2 • Published 4 years ago
ps-demo v1.0.2
cops
Getting Started
- Install Package
$ npm install ps-demo
- Example
const cops = require('ps-demo'); const servers = [ { url: "http://doesNotExist.boldtech.co",priority: 1}, { url: "http://boldtech.co", priority: 7}, { url: "http://offline.boldtech.co", priority: 2}, { url: "http://google.com", priority: 4} ]; cops.findServer(servers) .then(console.log) .catch(console.log)
Run Unit Test
$ git clone https://github.com/workrahul22/cops.git
$ cd cops
$ npm install
$ npm run test