1.0.7 • Published 3 years ago

encodekey v1.0.7

Weekly downloads
8
License
ISC
Repository
-
Last release
3 years ago

Purpose

Package and encrypt the key in Env and decrypt it in logic.

Method of use

// encode in webpack.dev.conf.js
const { KeyEncodePlugin } = require('encodeKey')// Introduction method

new KeyEncodePlugin({
      keyName: env.BASE_ekey, // Set the variables that need to be encrypted
      jsReg: /app\..+\.js$/, // Match file
      assetsPath: '../../dist/static/js' // Set target directory
    }),

// decode in project
import { decodeKey } from 'encodekey' // Introduction method

let key = decodeKey(process.env.BASE_ekey) // decryption key
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago