Socket
Book a DemoInstallSign in
Socket

dev-filterjs

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
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

dev-filterjs

A versatile and developer-friendly JavaScript utility for filtering arrays, objects, and nested data structures with custom, chainable logic.

1.0.5
unpublished
npmnpm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

dev-filterjs

npm version

dev-filterjs is a robust and extensible filtering utility designed for JavaScript and Vite-based development environments. It offers flexible filtering mechanisms for data streams and log pipelines, and integrates easily with tools like Bunyan and Winston.

Features

  • Advanced data/log filtering for development and build pipelines
  • Compatible with logging tools like Bunyan, Winston, or custom implementations
  • Lightweight with zero dependencies
  • Flexible filtering rules and conditions
  • Supports both console and file outputs
  • TypeScript ready with full typings

Installation

Using npm:

npm install dev-filterjs --save-dev

Using Yarn:

yarn add dev-filterjs -D

Usage

Integrate it in your vite.config.js or vite.config.ts:

import { defineConfig } from "vite";
import devFilterJS from "dev-filterjs";

export default defineConfig({
  plugins: [
    devFilterJS({
      logLevel: "info",
      format: "json",
      output: "console",
    }),
  ],
});

Configuration Options

OptionTypeDefaultDescription
logLevel'info' | 'warn' | 'error' | 'debug''info'Minimum log level to output
format'json' | 'pretty' | 'bunyan''pretty'Log/filter output format
output'console' | 'file''console'Output destination
outputPathstringundefinedPath to file output if output is 'file'
includeTimestampbooleantrueWhether to include timestamps

Example Output

Pretty Format

[dev-filterjs] [INFO] Server started on http://localhost:5173
[dev-filterjs] [DEBUG] Filter applied to 25 items

JSON Format

{
  "level": "info",
  "timestamp": "2025-06-07T14:32:00.000Z",
  "message": "Filter applied to 25 items"
}

License

MIT © [dmytryi]

Contributing

Contributions are welcome! Feel free to open issues or pull requests.

Keywords

filter

FAQs

Package last updated on 15 Jun 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.