lifeguard-api
v1.0.4
Published
<p align="center"> <img src="https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/twitter/214/helmet-with-white-cross_26d1.png" style="display: block;margin-left: auto;margin-right: auto;" data-canonical-src="https://emojipedia-us.s3.d
Downloads
9
Readme
⏬ Installation
$ npm i lifeguard-api
🚦 Usage
const LifeguardSession = require("lifeguard-api");
...
var lifeguard = new LifeguardSession({
apiKey: '123myApiKeyHere',
appName: 'Lifeguard is awesome 🕶',
appVersion: '1.0.0',
platform: 'windows'
});
pusher.on('foobar-page-load', async () => {
var isSafe = lifeguard.check('http://unsafe.page.com/foo.html', (safe) => {
console.log(safe)
// => false
})
var isSafe = lifeguard.check('https://facebook.com', (safe) => {
console.log(safe)
// => true
}))
});
🤝 Support
For support, join our support discord server.
📄 Documentation
Head over to our wiki page for documentation.
🧱 Built With
- NodeJS - The server environment
🖋 Authors
- Ender aka EnderDev - Main Developer - EnderDev
🤵 License
This project is licensed under the MIT License - see the LICENSE file for details