dynamic-typescript
v1.0.0
Published
A small TypeScript utility package for browser encryption and random behavior.
Readme
dynamic-typescript
A lightweight TypeScript utility package for browser-side encryption, random probability, and string update logic.
Install
npm install dynamic-typescriptUsage
import { CustomUtil } from 'dynamic-typescript';
const encrypted = CustomUtil.encrypt('hello', 'my-secret-key-1234', '1234567890123456');
const decrypted = CustomUtil.decrypt(encrypted, 'my-secret-key-1234', '1234567890123456');Example: Vue 3
<script setup lang="ts">
import { CustomUtil } from 'dynamic-typescript';
const result = CustomUtil.hitProbability();
</script>Build
npm install
npm run buildPublish
npm login
npm whoami
npm config set //registry.npmjs.org/:_authToken=
npm publish --access public请勿在公共场合分享 npm 登录密码。请使用你自己的 npm 账户登录后发布。
