1.0.0 • Published 2 years ago

project-enigma-core v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

project-enigma-core (WIP)

恩尼格码密码机的JS库,可以嵌入到web应用、桌面应用或是移动应用中,支持Typescript。

安装

NPM(推荐)

yarn add project-enigma-core # npm install project-enigma-core

下载文件引入

(https://github.com/diaz-zeng/project-enigma-core/releases)

<script src="project-enigma-core.umd.min.js"></script> 
<!--将会暴露EnigmaCore对象到全局-->

引入

import { Enigma } from 'project-enigma-core' //按需引入
import * as EnigmaCore from 'project-enigma-core' //全量引入(不建议)
const EnigmaCore = require('project-enigma-core') //CommonJS

基本用法

const instance = new Enigma();
instance.setWheelsPosition([0,25,20]).input("HELLO WORLD!!!");
// return: TCMCT IHCKX!!!
instance.setWheelsPosition([0,25,20]).input("TCMCT IHCKX!!!");
// return: HELLO WORLD!!!

更多信息请查看文档

1.0.0

2 years ago

1.0.0-1

2 years ago

0.0.2-6

2 years ago

0.0.2-5

2 years ago

0.0.2-4

2 years ago

0.0.2-3

2 years ago

0.0.2-2

2 years ago

0.0.2-1

2 years ago

0.0.2-0

2 years ago