1.0.2 â€ĸ Published 2 years ago

gsb-node v1.0.2

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

🌐 Google Safe Browsing NodeJS Wrapper

The Google Safe Browsing NodeJS Wrapper is a concise and efficient tool for interacting with Google's Safe Browsing API v4 using Node.js. This wrapper simplifies the process of checking whether a given URL is associated with malicious content.

đŸ› ī¸ Usage

âŦ‡ī¸ Installation

Install the package via npm:

npm install gsb-node

📍 Initialization

const GSBNode = require('gsb-node');

// Initialize with your Google Safe Browsing API key
const gsb = new GSBNode({ apiKey: 'your-api-key' });

📃 API Documentation

For comprehensive information on the Google Safe Browsing API v4, refer to the official documentation.

â„šī¸ Example

const gsb = new GSBNode({ apiKey: 'your-api-key' });

const maliciousURLs = await gsb.lookup(['https://example.com/malicious']);
console.log('Malicious URLs:', maliciousURLs);

or check this testing example here.

🔐 API Key Setup

To create a Google Safe Browsing API key, follow these steps:

  1. Go to the Google Cloud Console.
  2. Create a new project or select an existing one.
  3. Enable the "Safe Browsing API" for your project.
  4. Create credentials and generate an API key.

For more details, refer to the official guide.

đŸĢ‚ Contributing

Feel free to contribute to this project by submitting issues or pull requests on the GitHub repository.

This wrapper aims to provide a seamless integration with the Google Safe Browsing API v4, making it easier for Node.js developers to enhance the security of their applications.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago