1.0.4 • Published 5 years ago

lifeguard-api v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

⏬ 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.

Discord

📄 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

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago