@bradycorporation/brady-web-sdk

中文文档
3.3.3发布于 2026/10/09SEE LICENSE IN LICENSE.mdES Module近 30 天下载 4.3万

The Brady Web SDK allows users to communicate with Brady Printers using a web browser.

原始使用文档

The Brady Web SDK

The brady-web-sdk package allows connectivity and the printing of images to supported Brady printers from a web browser.

You may refer to sdk.bradyid.com for detailed documentation of the API. All available API methods are accessed using this BradySdk object that you will initialize in a script.


Set Up

  1. To install the brady-web-sdk package, navigate to your application's root in a command prompt and use the command:
npm i @bradycorporation/brady-web-sdk
  1. Since the brady-web-sdk is not a Node.js module, importing the module requires users to map the import using the script type "importmap". Refer to this article for more details on these imports.
<!-- In the application's index.html/entry point, map the SDK using it's installation 
path to a custom import name. This name is not required to be "brady-web-sdk". -->

<script type="importmap">
    { 
        "imports": {
            "brady-web-sdk": "./node_modules/@bradycorporation/brady-web-sdk/dist/bundle.js"
        }                   
    }                     
</script> 
  1. To use the SDK, you may now use your import name in a JavaScript file like:
import BradySdk from 'brady-web-sdk'
var bradySdk = new BradySdk(printerUpdatesCallback)

Set Up (Alternative)

When using a web-based framework that does not support "importmap" or the framework does not support this syntax of import pathing, complete the following steps.

(This alternative method was investigated and proven using the Angular web application framework. These steps might not work exactly the same in all frameworks.)

  1. To install the brady-web-sdk package, navigate to your application's root in a command prompt and use the command:
npm i @bradycorporation/brady-web-sdk
  1. Add the following lines of code to the tsconfig.json:
"allowJs":true,
"noImplicitAny":false
  1. In the code, you may use the following import statement:
import BradySdk from '@bradycorporation/brady-web-sdk';

DISCLAIMER: There might be a warning when using this import statement. This can be ignored and the functionality should still work as expected. This warning reads: "Could not find a declaration file for module '@bradycorporation/brady-web-sdk'." It may also suggest "Try npm i --save-dev @types/bradycorporation__brady-web-sdk if it exists or add a new declaration (.d.ts) file containing declare module '@bradycorporation/brady-web-sdk';". You should not have to do this for the SDK to be successfully initialized and used.

  1. You may initialize the BradySdk class as such:
var bradySdk = new BradySdk(printerUpdatesCallback);

The Brady Web SDK is completely dependent on the Bluetooth Web API at the current moment. Therefore, click here to refer to all supported browsers. All of these supported browsers have been tested including the mentioned mobile browsers.

NOTE: The most popular web browser for Mac users is Safari. Since Safari is not supported with the Bluetooth Web API, you may install any of the supported browsers on a Mac as a work-around.

版本与发布记录

@bradycorporation/brady-web-sdk 共发布 19 个版本,首次发布于 2024/04/03;过去 12 个月发布了 7 个版本。

版本发布日期距今
3.3.3latest2026/10/0930 天前
3.3.22026/09/161 个月前
3.3.12026/09/151 个月前
3.3.02026/09/111 个月前
3.2.22026/03/137 个月前
3.2.12026/02/108 个月前

关于 @bradycorporation/brady-web-sdk 的常见问题

@bradycorporation/brady-web-sdk 是什么?

The Brady Web SDK allows users to communicate with Brady Printers using a web browser.

如何安装 @bradycorporation/brady-web-sdk?

在项目目录运行 npm install @bradycorporation/brady-web-sdk,或使用 pnpm add / yarn add / bun add。

@bradycorporation/brady-web-sdk 支持 TypeScript 吗?

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

@bradycorporation/brady-web-sdk 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@bradycorporation/brady-web-sdk 可以商用吗?

@bradycorporation/brady-web-sdk 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@bradycorporation/brady-web-sdk 的下载量有多少?

根据 npm 官方下载统计,@bradycorporation/brady-web-sdk 在 2026/10/09 – 2026/11/07 这 30 天内被下载 43,492 次,日均约 1,450 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bradycorporation/brady-web-sdk 还在维护吗?

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