compressed-script-loader 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cslpack.js +1 -0
- package/package.json +1 -1
package/bin/cslpack.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
/*! For license information please see cslpack.js.LICENSE.txt */
|
|
2
3
|
(()=>{var __wm__={274:module=>{const ArgsConfig={startIndex:2,prefix:"-"};function getExtraArgs(args_config,debug=!1){debug&&console.log("process.argv: ",process.argv);let actualConfig=args_config||{};actualConfig=Object.assign(ArgsConfig,actualConfig);const varIndex=actualConfig.prefix.length,extra_index=actualConfig.startIndex||2,params={};if(process.argv.length>extra_index){const cmdArgs=process.argv;for(let index=extra_index;index<cmdArgs.length;){const opt=cmdArgs[index++];if(opt)if(opt.startsWith(actualConfig.prefix)){let value=cmdArgs[index]
|
|
3
4
|
;void 0===value||value.startsWith(actualConfig.prefix)?value=!0:(/^\[.+\]$/.test(value)||/^\/[^/]+\/[gimuys]{0,6}$/.test(value)?value=eval(value):/\\,/.test(value)?value=value.replace(/\\,/g,","):/,/.test(value)?value=value.split(","):/^(?:-?\.?\d+(?:\.\d*)?|0x[\da-f]+)$/i.test(value)&&(value=+value),index++),params[opt.substring(varIndex)]=value}else{let e=params.args;!e&&(params.args=e=[]),e.push(opt)}}}return params}module.exports=getExtraArgs}},__wmc__={};function __wr__(e){var r=__wmc__[e];if(void 0!==r)return r.exports;var n=__wmc__[e]={exports:{}};return __wm__[e](n,n.exports,__wr__),n.exports}__wr__.r=e=>{
|