JSPM

obscuretext

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q5060F
    • License MIT

    Package Exports

    • obscuretext
    • obscuretext/cli.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (obscuretext) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    byvue-obscure

    byvue模板项目专用的文件加密插件

    Install

    npm i byvue-obscure

    Usage

    // 生成obscureConfig.json配置文件
    obscure init
    
    // 运行加密程序
    obscure run 

    obscureConfig options

    destDir

    Type: string 混淆后输出的文件夹名,默认为{ 目标文件夹名称 }-obscure

    fileExtensions

    Type: array 需要混淆的文件扩展名,目前仅支持.js.vue文件的混淆加密

    excludes

    Type: array 要排除的文件夹或文件名

    targetCodes

    Type: array 需要添加注释的代码,一些特殊的js代码加密后可能无法正确转义,如vite的环境变量等

    obfuscationOptions

    Type: object javascript-obfuscator的配置项 javascript-obfuscator官方文档