New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-userscript

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-userscript - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "vite-plugin-userscript",
"version": "0.1.1",
"version": "0.1.2",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "dist/index.mjs",

@@ -35,2 +35,29 @@ # vite-plugin-userscript

Full options
```js
metablock({
// support json / json5 / yaml.
file: './metablock.json',
// show hints if you only want to write for specific script manager.
manager: 'all',
// dynamic override the meta from meta file
override: {
name: require('package.json').name
},
order: ['name', 'description', 'namespace', '...', 'grant'],
// the action when meet invalid meta
errorLevel: 'warn'
// append metablock to which output files
applyTo: /[.]user[.]js$/
})
```
## Examples

@@ -37,0 +64,0 @@

type OutputApplyPattern = string | RegExp;
type ErrorLevel = 'off' | 'warn' | 'error';
type OverrideValue = string | Record<string, string> | boolean | undefined;
type SupportedScriptManager = 'tm' |
'tampermonkey' |
'gm3' |
'greasemonkey3' |
'gm' |
'gm4' |
'greasemonkey' |
'greasemonkey4' |
'vm' |
'violentmonkey' |
'compatible' |
'all'

@@ -12,3 +24,3 @@ interface MetablockPluginOption {

errorLevel?: ErrorLevel;
manager?: string | string[];
manager?: SupportedScriptManager | SupportedScriptManager[];
override?: Record<string, OverrideValue>;

@@ -15,0 +27,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc