🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More
Socket
Book a DemoInstallSign in
Socket

sinamfe-tools-https

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinamfe-tools-https

https转换,包含映射表,可用作brower引用的处理接口返回url资源的转换方法;

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

本组件作为管理前端脚本https化的基础组件,可以被前端运行时脚本直接调用,用来处理在运行时的时候进行接口数据或者动态数据的https化,同时可以提供给webpack,可以进行webpack在打包过程中针对静态脚本的https化。

使用方法:

结合webpack使用参考组件:@mfelibs/base-webpack-https

使用方法参考: http://cnpm.sina.com.cn/package/@mfelibs/base-webpack-https

直接使用参考如下说明:

    yarn add @mfelibs/base-tools-https

    import httpsConvert from "@mfelibs/base-tools-https";

//按照目前维护的mapping进行https化

    httpsConvert.cUrlAuto(url);

mapping使用说明:

src/mapping.js文件夹存放着目前所有用到的https化的对应关系,如果需要添加或者减少对应关系,请在此文件中进行维护

Keywords

https

FAQs

Package last updated on 11 Jul 2017

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