You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
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.2
unpublished
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

js-log-print

npm version

js-log-print is a robust and extensible logging utility for Vite and JavaScript projects. It supports structured logging formats and integrates seamlessly with popular tools like Bunyan and Winston.

Features

  • Structured logging for Vite development and build processes
  • Compatible with Bunyan, Winston, and custom log pipelines
  • Lightweight and zero dependencies
  • Customizable log levels and output formats
  • Supports console and file-based outputs
  • Built-in TypeScript support

Installation

Using npm:

npm install js-log-print --save-dev

Using Yarn:

yarn add js-log-print -D

Usage

Add the plugin to your vite.config.js or vite.config.ts:

import { defineConfig } from "vite";
import jsLogPrint from "js-log-print";

export default defineConfig({
  plugins: [
    jsLogPrint({
      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 message format
output'console' | 'file''console'Output destination
outputPathstringundefinedPath to log file if output is 'file'
includeTimestampbooleantrueWhether to include timestamps in logs

Example Output

Pretty Format

[js-log-print] [INFO] Server started on http://localhost:5173
[js-log-print] [DEBUG] Resolved config: ...

JSON Format

{
  "level": "info",
  "timestamp": "2025-06-07T14:32:00.000Z",
  "message": "Server started on http://localhost:5173"
}

License

MIT © [dmytryi]

Contributing

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

Keywords

filter

FAQs

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