0.0.1 • Published 1 year ago

encryption-js-part v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

:cd: Installation

npm install --save-dev encryption-js-part

Requirements

  • Node.js v12.22.x, v14.17.x, v16.x and above

:book: Usage

// .vue.config.js
module.exports = {
    configureWebpack:{
    plugins: [
       new encryption({
        encryption: function base64Encode(str) {
          const buffer = Buffer.from(str, "utf-8");
          return buffer.toString("base64");
        },
        decryption: function (e) {
          return atob(e);
        },
        filename: "/base.",
        injection: "/vue.",
        // regular,
      }),
    ],}
    
}

:lock: License

See the LICENSE file for license rights and limitations (MIT).