# 2049-system

> 2049进制(基于2048个高频中文汉字)

Latest version **1.0.1** (published 2023-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install 2049-system
pnpm add 2049-system
yarn add 2049-system
bun add 2049-system
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-11-28 |
| First published | 2023-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 109.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rain |
| Maintainers | raincle |
| Keywords | 2048, system, decimal, hexadecimal |

## Links

- npm: https://www.npmjs.com/package/2049-system
- npm.io page: https://npm.io/package/2049-system

## Dependencies (2)

- [@types/node](https://npm.io/package/@types/node.md) ^18.0.3
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.1.2

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-11-28
- 1.0.0 — 2023-11-28

## README

# 2049-system
2049进制(基于2048个高频中文汉字)

## Motivation
1. 由于6764进制中使用的汉字对大部分人来说仍有些不易认读的汉字，因此优化2049进制版本。
2. 市面上常用的进制转换，基于英文字母，例如16进制、26进制、52进制、62进制，都限制于数字和字母大小写的个数。
3. 因此，作者决定开发基于字频的中文2049进制，缩短密文长度，提高密文可读性，使密文能够仅在脑中存储。

## Features

1. 2049进制便于记忆大数、缩短密文等
2. 将10进制、16进制转换为2049进制
3. 将2049进制，转换为10进制、16进制

## Installation
```sh
$ npm i --save 2049-system
```

## Common Usage
```js
/*
 *加密解密
 */
import { to2049, toNumber } from "2049-system";

const hello = to2049("1122972")
console.log(hello) // 你好
const deceimalHello = toNumber("你好")
console.log(deceimalHello) // 1122972

const helloHex = to2049("11229c", 16)
console.log(helloHex) // 你好
const hexHello = toNumber("你好", 16)
console.log(hexHello) // 11229c

const helloWorld = to2049("4714687261829")
console.log(helloWorld) // 你好世界
const deceimalHelloWorld = toNumber("你好世界")
console.log(deceimalHelloWorld) // 4714687261829

const helloWorldHex = to2049("449b9426c85", 16)
console.log(helloWorldHex) // 你好世界
const hexHelloWorld = toNumber("你好世界", 16)
console.log(hexHelloWorld) // 449b9426c85

```


## Advanced Usage

## Contact
如果你有好点子，想改善这个库，  
或者想要一起做点有意思的事  
请联系我！
- - -
微信：Mid9Rain  
小红书：雨叔  
抖音：85665398215
- - -
知乎：雨叔  
B站：雨叔在B站  

## License
MIT

---
_Source: https://npm.io/package/2049-system · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
