Skip to content

UETCodeCamp/node-pusher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Pusher for Whois Runner

Super simple to use.

  • Variable environments will be automatically loaded into package:
SUBMIT_HOST=http://localhost:2000
SUBMIT_SECRET=xxxx
  • Pushing the job result back to system:
const pusher = require('@uet/pusher');
pusher.submit({
    id: 'job_id',
    is_pass:true, // or false
    message: '',
    std_out: '',
    std_err: ''
})
  • You can change settings to override default settings by the way:
pusher.settings({
    host: 'https://another-host.com',
    secret: 'another_secret'
})

License

MIT © UET Code Camp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published