New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

trufflehog

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trufflehog

Search for new subreddit posts that match your criteria

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

trufflehog

🐖 Search for new subreddit posts that match your criteria

Getting Started

  • Install:
    npm i -g trufflehog

  • Run:
    trufflehog

  • Respond to the prompts to configure trufflehog, or see the config file options below.

Config Properties

  • subredditName - The subreddit name to search in
  • useBodySearch - Whether to search the post body in addition to the title
  • useRegex - Whether to use regex or regular string for the search
  • useCaseSensitive - Whether the search will be case-sensitive or not
  • searchString - The text or regex string to search for
  • pollingFrequency - How frequently to perform the search in seconds, between 1 and 86400
  • useNotifications - Whether to receive email notifications when a match is found (not yet implemented)

Config File Options

You can configure trufflehog by passing the filepath to the config file. Trufflehog accepts JSON and .env config files. If your config file is missing a setting that is required, trufflehog will prompt you for the setting.

JSON

trufflehog -c path/to/config.json or trufflehog --config path/to/config.json

{
    "subredditName": "news",
    "useBodySearch": true,
    "useRegex": true,
    "useCaseSensitive": true,
    "searchString": "[a-zA-Z]{2,4}",
    "pollingFrequency": 10,
    "useNotifications": false
}

.env

trufflehog -c path/to/.env or trufflehog --config path/to/.env

subredditName=news
useBodySearch=true
useRegex=true
useCaseSensitive=true
searchString=[a-zA-Z]{2,4}
pollingFrequency=10
useNotifications=false

To Do

  • Add user notifications (Email, SMS, Push)
  • Allow defining multiple search rules to match against
  • Enable multiple search queries to run simultaneously
  • Support searching other post types (not just new posts)

Keywords

subreddit

FAQs

Package last updated on 02 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts