@axway/json-refs

中文文档
4.0.0发布于 2021/02/26MITTypeScriptCommonJS近 30 天下载 2404

Various utilities for JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).

原始使用文档
文档目录5 节
  1. Project Badges
  2. Documentation
  3. Installation
  4. Browser
  5. Node.js

json-refs

json-refs is a simple library for interacting with JSON References and JSON Pointers. While the main purpose of this library is to provide JSON References features, since JSON References are a combination of Object structure and a JSON Pointer, this library also provides some features for JSON Pointers as well.

Project Badges

  • Build status: Build Status
  • Dependencies: Dependencies
  • Developer dependencies: Dev Dependencies
  • Downloads: NPM Downloads Per Month
  • Gitter: Join the chat at https://gitter.im/whitlockjc/json-refs
  • License: License
  • Version: NPM Version

Documentation

The documentation for this project can be found at https://github.com/whitlockjc/json-refs/blob/master/docs/README.md. Specific documentation can be found here:

Installation

json-refs is available for both Node.js and the browser. Installation instructions for each environment are below.

Browser

json-refs binaries for the browser are available in the dist/ directory:

Of course, these links are for the master builds so feel free to download from the release of your choice. Once you've gotten them downloaded, to use the standalone binaries, your HTML include might look like this:

<!-- ... -->
<script src="json-refs.js"></script>
<!-- ... -->

Node.js

Installation for Node.js applications can be done via NPM.

npm install json-refs --save

If you plan on using the json-refs CLI executable, you can install json-refs globally like this:

npm install json-refs --global

After this, feel free to run json-refs help to see what you can do or view the CLI documentation linked above

版本与发布记录

@axway/json-refs 共发布 1 个版本,首次发布于 2021/02/26;过去 12 个月发布了 0 个版本。

版本发布日期距今
4.0.0latest2021/02/265 年前

关于 @axway/json-refs 的常见问题

@axway/json-refs 是什么?

Various utilities for JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).

如何安装 @axway/json-refs?

在项目目录运行 npm install @axway/json-refs,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 json-refs,可以用 npx json-refs 直接运行。

@axway/json-refs 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@axway/json-refs 支持 ESM 还是 CommonJS?

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

@axway/json-refs 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=0.8。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@axway/json-refs 可以商用吗?

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

@axway/json-refs 的下载量有多少?

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

@axway/json-refs 还在维护吗?

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