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

@gotoeasy/browserify

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gotoeasy/browserify

使用固定配置让browserify转译代码,简化满足特定需求:把含require的代码转成能在浏览器上运行的代码

latest
Source
npmnpm
Version
0.4.3
Version published
Maintainers
1
Created
Source

@gotoeasy/browserify

使用固定配置让browserify转译代码,简化满足特定需求:把含require的代码转成能在浏览器上运行的代码

NPM version License

Sample

const browserify = require('@gotoeasy/browserify');

let code = `
"use strict";

require("core-js/modules/es6.string.starts-with");

var flg = 'abc'.startsWith('a');
`;

(async function(){
    let rs = await browserify(code, './'); // 在当前目录查找补丁模块
    console.info(rs);
})();



// 转译结果如下
/*
(function(){function r(e,n,t)...
   ...
   ...
   ...
},{"./_export":9,"./_fails-is-regexp":10,"./_string-context":23,"./_to-length":25}],30:[function(require,module,exports){

"use strict";

require("core-js/modules/es6.string.starts-with");

var flg = 'abc'.startsWith('a');

},{"core-js/modules/es6.string.starts-with":29}]},{},[30]);
*/

Keywords

gotoeasy

FAQs

Package last updated on 05 May 2020

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