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

userscript-metadata-webpack-plugin

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

userscript-metadata-webpack-plugin

A webpack plugin to generate userscript metadata and prepend to js

latest
Source
npmnpm
Version
0.4.2
Version published
Weekly downloads
65
-14.47%
Maintainers
0
Weekly downloads
 
Created
Source

userscript-metadata-webpack-plugin

userscript-metadata-webpack-plugin is a webpack plugin to generate userscript metadata comments for UserScript.

require:

  • webpack 5
  • nodejs >= 16

usage

you can find a full template project in webpack-userscript-template

install

npm i userscript-metadata-webpack-plugin -D

configure

webpack.config.js

const pkg = require('../package.json');
const {UserScriptMetaDataPlugin} = require('userscript-metadata-webpack-plugin');


const config = {
  // ...
  // ...
  plugins: [
    new UserScriptMetaDataPlugin({
      metadata: {...},
      test: /\.user\.js$/, // optional, default /\.user\.js$/
    }),
  ],
};

module.exports = config;

you can see more details about metadata here https://github.com/trim21/userscript-metadata-generator

Keywords

webpack

FAQs

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