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

@gcommands/plugin-blacklist

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gcommands/plugin-blacklist

Easy to use blacklist system

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
9
Maintainers
1
Weekly downloads
 
Created
Source

GCommands Plugin Blacklist

Official plugin for GCommands


NPM Banner

Installation

Install with npm / yarn / pnpm:

npm install @gcommands/plugin-blacklist
yarn add @gcommands/plugin-blacklist
pnpm add @gcommands/plugin-blacklist

Informations

// index.js / LruCache Provider (recommended)
const { Plugins, GClient } = require('gcommands');
const { MongoDBProvider } = require('gcommands/dist/providers/MongoDBProvider');

const client = new GClient({
    database: new MongoDBProvider(process.env.mongodb_uri);
})

Plugins.search(__dirname);
const { BlacklistManager } = require('@gcommands/plugin-blacklist');

BlacklistManager.setBlacklist(client, userId, true); // blacklisted
BlacklistManager.setBlacklist(client, userId, false); // unblacklisted

If you have inhibitors in command, you need add new BlacklistInhibitor();

Keywords

gcommands

FAQs

Package last updated on 04 Apr 2022

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