1.0.4 • Published 5 years ago
lifeguard-api v1.0.4
⏬ 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