npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

evbee-service-tools

v1.0.2

Published

Evbee service tools - 蓝牙连接、CRC32计算、RC4加密、工具函数集合

Readme

Evbee Service Tools

一个集成了蓝牙连接、CRC32计算、RC4加密和各种工具函数的JavaScript库。

功能特性

  • 🔗 蓝牙连接: 封装的蓝牙设备连接方法
  • 🔢 CRC32计算: 支持标准CRC32和Uint8Array的CRC32计算
  • 🔐 RC4加密: 基于CryptoJS的RC4加密解密
  • 🛠️ 工具函数: 数据转换、编码解码、时区处理等实用工具

安装

npm install evbee-service-tools

使用方法

浏览器环境

<script src="./dist/evbee-service-tools.min.js"></script>
<script>
  // 使用 CRC32
  const data = new Uint8Array([1, 2, 3, 4, 5]);
  const result = EvbeeServiceTools.getCrc32(data, data.length);
  
  // 使用工具函数
  const hex = EvbeeServiceTools.int2Hex(255);
  const bin = EvbeeServiceTools.int2BIN(10);
</script>

Node.js 环境

const EvbeeServiceTools = require('evbee-service-tools');

// CRC32 计算
const data = new Uint8Array([1, 2, 3, 4, 5]);
const crc32 = EvbeeServiceTools.getCrc32(data, data.length);

// 数据转换
const hex = EvbeeServiceTools.int2Hex(255);
const bin = EvbeeServiceTools.int2BIN(10);

ES6 模块

import { getCrc32, utils, CryptoJS } from 'evbee-service-tools';

// 使用具体功能
const result = getCrc32(data, data.length);
const hex = utils.int2Hex(255);

API 文档

CRC32 计算

  • getCrc32(data, len): 标准CRC32计算
  • getCrc32ByUint8Array(data, len): 针对Uint8Array优化的CRC32计算

RC4 加密

  • CryptoJS.RC4.encrypt(message, key): RC4加密
  • CryptoJS.RC4.decrypt(ciphertext, key): RC4解密

工具函数

  • int2Hex(num): 十进制转十六进制
  • int2BIN(num): 十进制转二进制
  • hex2Int(hex): 十六进制转十进制
  • bigToLittle(data): 大端转小端
  • littleToBig(data): 小端转大端
  • 更多工具函数请查看源码...

构建

npm run build

开发

npm run dev

许可证

ISC