npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bogusfilter

v1.2.39

Published

Bogus Filter helps you protect your application by suggesting, and if you choose, blocking data input by bots, spammers, competition and whoever else you choose.

Downloads

66

Readme

Bogus Filter

The node agent that allows you to start filtering out bogus input data from your application.

Documentation

For further up to date usage and documentation, visit docs.bogusfilter.com.

Installation

npm install bogusfilter

Usage

var bogusfilter = require('bogusfilter');

// Note: The filter with the content of [email protected]
// is a global filter added by the Bogus Filter team.
bogusfilter.check('email', '[email protected]', process.env.BOGUS_API_KEY, true)
.then((res) => {
  console.log(res);
})
.catch((err) => {
  console.log(err);
});

Output will be:

{
  "success": true,
  "query": "[email protected]",
  "bogus": true,
  "group": {
    "_id": "5aab3ea9b7450b00143b093f",
    "title": "Bogus Emails",
    "description": {
      "extended": "",
      "brief": ""
    },
    "images": [],
    "global": true
  },
  "category": {
    "_id": "5aab3ea9b7450b00143b0937",
    "title": "Email",
    "description": "Filtered email addresses.",
    "global": true
  },
  "match": {
    "_id": "5ac060ab6bd2e600149164f5",
    "title": "Landing Page Demo Email Filter",
    "content": "[email protected]",
    "group": "5aab3ea9b7450b00143b093f",
    "category": "5aab3ea9b7450b00143b0937",
    "global": true
  },
  "matches": 8,
  "global": true,
  "timestamp": 1529849129832
}

Or...

// Note: nope.it is NOT a filter that has been set via the
// Bogus Filter dashboard at https://my.bogusfilter.com
bogusfilter.check('email', 'nope.it', process.env.BOGUS_API_KEY, true)
.then((res) => {
  console.log(res);
})
.catch((err) => {
  console.log(err);
});

Output will be:

{
    "success": true,
    "query": "nope.it",
    "bogus": false,
    "group": {
      "_id": "5aab3ea9b7450b00143b093f",
      "title": "Bogus Emails",
      "description": {
        "extended": "",
        "brief": ""
      },
      "images": [],
      "global": true
    },
    "category": {
        "_id": "5aab32edeec8f1287c56b11c",
        "description": "Filtered email addresses.",
        "title": "Email",
        "path": "email"
    },
    "match": null,
    "matches": 1,
    "global": true,
    "timestamp": 1521711746430
}

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.