🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@code-rub/filter-files

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-rub/filter-files

## Usage

1.3.1
latest
npm
Version published
Weekly downloads
24
-29.41%
Maintainers
1
Weekly downloads
 
Created
Source

@code-rub/filter-files plugin

Usage

Install with npm or yarn:

  • npm i --save-dev @code-rub/filter-files
  • yarn add --dev @code-rub/filter-files

Setup inside of your code-rub.config.js file:

  • Add @code-rub/filter-files to the plugins array.
  • Add an entry to pluginConfiguration with @code-rub/filter-files as the key.
    • Set up any bannedFileNames, bannedGlobPatterns, and allowedFileTypes inside of the config. Below is an example configuration, as used in this repository.
module.exports = {
  plugins: [
    '@code-rub/filter-files',
  ],
  pluginConfiguration: {
    '@code-rub/filter-files': {
      allowedFileExtensions: ['.ts', '.js'],
      bannedGlobPatterns: ['*.config.ts'],
      bannedFileNames: ['jest.config.js', 'code-rub.config.js', 'jest.preset.js'],
    },
  },
};

FAQs

Package last updated on 04 May 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