@bevry/json

中文文档
2.4.0发布于 2023/12/29Artistic-2.0TypeScriptESM + CJS近 30 天下载 3000

Helpers for reading and writing JSON.

原始使用文档
文档目录13 节
  1. Usage
  2. Install
  3. npm
  4. Deno
  5. Skypack
  6. unpkg
  7. jspm
  8. Editions
  9. History
  10. Backers
  11. Code
  12. Finances
  13. License

@bevry/json

Status of the GitHub Workflow: bevry NPM version NPM downloads
GitHub Sponsors donate button ThanksDev donate button Patreon donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button
Discord server badge Twitch community badge

Helpers for reading and writing JSON.

Usage

Complete API Documentation.

Install

npm

  • Install: npm install --save @bevry/json
  • Import: import * as pkg from ('@bevry/json')
  • Require: const pkg = require('@bevry/json')

Deno

import * as pkg from 'https://unpkg.com/@bevry/json@^2.4.0/edition-deno/index.ts'

Skypack

<script type="module">
    import * as pkg from '//cdn.skypack.dev/@bevry/json@^2.4.0'
</script>

unpkg

<script type="module">
    import * as pkg from '//unpkg.com/@bevry/json@^2.4.0'
</script>

jspm

<script type="module">
    import * as pkg from '//dev.jspm.io/@bevry/[email protected]'
</script>

Editions

This package is published with the following editions:

  • @bevry/json aliases @bevry/json/index.cjs which uses the Editions Autoloader to automatically select the correct edition for the consumer's environment
  • @bevry/json/source/index.ts is TypeScript source code with Import for modules
  • @bevry/json/edition-browsers/index.js is TypeScript compiled against ES2022 for web browsers with Import for modules
  • @bevry/json/edition-es2022/index.js is TypeScript compiled against ES2022 for Node.js 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules
  • @bevry/json/edition-es2015/index.js is TypeScript compiled against ES2015 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules
  • @bevry/json/edition-es2022-esm/index.js is TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules
  • @bevry/json/edition-types/index.d.ts is TypeScript compiled Types with Import for modules
  • @bevry/json/edition-deno/index.ts is TypeScript source code made to be compatible with Deno

History

Discover the release history by heading on over to the HISTORY.md file.

Backers

Code

Discover how to contribute via the CONTRIBUTING.md file.

Authors

Maintainers

Contributors

Finances

GitHub Sponsors donate button ThanksDev donate button Patreon donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button

Sponsors

  • Andrew Nesbitt — Software engineer and researcher
  • Balsa — We're Balsa, and we're building tools for builders.
  • Codecov — Empower developers with tools to improve code quality and testing.
  • Poonacha Medappa
  • Rob Morris
  • Sentry — Real-time crash reporting for your web apps, mobile apps, and games.
  • Syntax — Syntax Podcast

Donors

License

Unless stated otherwise all works are:

and licensed under:


版本与发布记录

@bevry/json 共发布 32 个版本,首次发布于 2021/07/26;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.4.0latest2023/12/292 年前
2.4.0-next.1703842938.15106d8a18b45f07b19ec33622cc4e4db71458c7next2023/12/292 年前
2.3.02023/12/272 年前
2.3.0-next.1703675907.3b0d2570d3cae36009692deaabf538b152ef39ac2023/12/272 年前
2.2.12023/12/222 年前
2.2.1-next.1703243069.bddefd078e98983437e056f31b7f3391d025d62f2023/12/222 年前

关于 @bevry/json 的常见问题

@bevry/json 是什么?

Helpers for reading and writing JSON.

如何安装 @bevry/json?

在项目目录运行 npm install @bevry/json,或使用 pnpm add / yarn add / bun add。

@bevry/json 支持 TypeScript 吗?

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

@bevry/json 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@bevry/json 需要什么版本的 Node.js?

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

@bevry/json 可以商用吗?

@bevry/json 使用 Artistic-2.0 许可。声明的许可为 Artistic-2.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@bevry/json 的下载量有多少?

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

@bevry/json 还在维护吗?

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