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

@gcommands/plugin-premium

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gcommands/plugin-premium

Easy to use premium system

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

GCommands Plugin Premium

Official plugin for GCommands


NPM Banner

Installation

Install with npm / yarn / pnpm:

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

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 { PremiumManager } = require('@gcommands/plugin-premium');

PremiumManager.setPremium(client, userId, true); // set premium
PremiumManager.setPremium(client, userId, false); // remove premium

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

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