@abcpros/bitcore-lib

中文文档
8.25.43发布于 2023/04/22MITCommonJS近 30 天下载 8704

A pure and powerful JavaScript Bitcoin library.

原始使用文档
文档目录9 节
  1. Principles
  2. Get Started
  3. Documentation
  4. Examples
  5. Building the Browser Bundle
  6. Development & Tests
  7. Security
  8. Contributing
  9. License

Bitcore Lib

NPM Package Build Status Coverage Status

A pure and powerful JavaScript Bitcoin library.

Principles

Bitcoin is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Bitcoin network allows for highly resilient bitcoin infrastructure, and the developer community needs reliable, open-source tools to implement bitcoin apps and services.

Get Started

npm install bitcore-lib
bower install bitcore-lib

Documentation

The complete docs are hosted here: bitcore documentation. There's also a bitcore API reference available generated from the JSDocs of the project, where you'll find low-level details on each bitcore utility.

Examples

Building the Browser Bundle

To build a bitcore-lib full bundle for the browser:

gulp browser

This will generate files named bitcore-lib.js and bitcore-lib.min.js.

You can also use our pre-generated files, provided for each release along with a PGP signature by one of the project's maintainers. To get them, checkout the releases.

Development & Tests

git clone https://github.com/bitpay/bitcore-lib
cd bitcore-lib
npm install

Run all the tests:

gulp test

You can also run just the Node.js tests with gulp test:node, just the browser tests with gulp test:browser or create a test coverage report (you can open coverage/lcov-report/index.html to visualize it) with gulp coverage.

Security

We're using Bitcore in production, as are many others, but please use common sense when doing anything related to finances! We take no responsibility for your implementation decisions.

If you find a security issue, please email [email protected].

Contributing

See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.

License

Code released under the MIT license.

Copyright 2013-2019 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.

版本与发布记录

@abcpros/bitcore-lib 共发布 7 个版本,首次发布于 2021/07/19;过去 12 个月发布了 0 个版本。

版本发布日期距今
8.25.43latest2023/04/223 年前
8.25.412023/03/273 年前
8.25.322022/05/144 年前
8.25.312021/07/295 年前
8.25.302021/07/285 年前
8.25.292021/07/275 年前

关于 @abcpros/bitcore-lib 的常见问题

@abcpros/bitcore-lib 是什么?

A pure and powerful JavaScript Bitcoin library.

如何安装 @abcpros/bitcore-lib?

在项目目录运行 npm install @abcpros/bitcore-lib,或使用 pnpm add / yarn add / bun add。

@abcpros/bitcore-lib 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/abcpros__bitcore-lib 是否存在。

@abcpros/bitcore-lib 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@abcpros/bitcore-lib 可以商用吗?

@abcpros/bitcore-lib 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@abcpros/bitcore-lib 的下载量有多少?

根据 npm 官方下载统计,@abcpros/bitcore-lib 在 2026/10/05 – 2026/11/03 这 30 天内被下载 8,704 次,日均约 290 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@abcpros/bitcore-lib 还在维护吗?

最新版本 8.25.43 发布于 2023/04/22(3 年前);至今共发布 7 个版本,其中过去 12 个月发布了 0 个;首次发布于 2021/07/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。