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

@smock/vue-cli-plugin-sproxy

Package Overview
Dependencies
Maintainers
12
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smock/vue-cli-plugin-sproxy

vue cli plugin of @smock/interceptor

latest
Source
npmnpm
Version
0.1.28
Version published
Maintainers
12
Created
Source

Usage

Installation:

npm i @smock/vue-cli-plugin-sproxy

使用方式

该服务会在任何vue子命令启动时启动。(只有在process.env.NODE_ENV为development时或未定义时生效。)

例如: 该服务会在运行npm run serveyarn serve时自动运行。 该服务会运行在配置文件制定的端口。 详细信息可以查看控制台输出。

如何禁用?

启动serve时指定环境变量NO_INTERCEPTOR=true即可。

也可以作为vue-cli-service子命令启动

注意:使用命令启动时请指定NO_INTERCEPTOR环境变量为true。目的是禁止自动启动的服务。

{
  // ...
  "scripts": {
    "sproxy": "vue-cli-service sproxy --port 5000"
  }
  // ...
}

Then you can run command to start the interceptor service.

npm run sproxy

Configuration Documents:

See here:(https://www.npmjs.com/package/@smock/interceptor)

Keywords

Vue CLI plugin

FAQs

Package last updated on 22 Jul 2021

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