1.0.7 • Published 4 years ago

encodekey v1.0.7

Weekly downloads
8
License
ISC
Repository
-
Last release
4 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

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago