@exabyte-io/periodic-table.js

中文文档
2023.12.23-3发布于 2023/12/23Apache-2.0CommonJS近 30 天下载 2607

Data about chemical elements arranged in JSON format

原始使用文档
文档目录7 节
  1. Installation
  2. Usage
  3. Atomic Properties
  4. Notes
  5. Contributions
  6. ToDos
  7. Links

npm version License: Apache

Periodic Table

Data about chemical elements arranged in JSON format. The module also contains a Element class for convenient access to unit conversion of atomic properties (see example below).

Installation

The package can be installed from NPM as follow:

npm install @exabyte-io/periodic-table.js

Usage

import {PERIODIC_TABLE, ChemicalElement} from "@exabyte-io/periodic-table.js";

console.log(PERIODIC_TABLE.H);

const li = new ChemicalElement("Li");
console.log(li.atomicRadiusIn("bohr"));

Atomic Properties

  • name: element name
  • symbol: element symbol
  • atomic_number: atomic number
  • atomic_mass: atomic mass in amu
  • atomic_radius_pm: empirical atomic radius in pm by Slater (doi: 10.1063/1.1725697)
  • covalent_radius_pm: covalent radius "2008 values" (doi: 10.1039/b801115j)
  • van_der_Waal_radius_pm: van der Waals radius (doi: 10.1021/jp8111556, 10.1021/j100785a001)

Notes

  • Colors are in CPK convention

Contributions

This repository is an open-source work-in-progress and we welcome contributions.

ToDos

  • Add python code to make this repository into a python package
  1. Periodic table original source: GPeriodic, Open source Linux software: link

版本与发布记录

@exabyte-io/periodic-table.js 共发布 30 个版本,首次发布于 2019/03/14;过去 12 个月发布了 0 个版本。

版本发布日期距今
2023.12.23-3latest2023/12/232 年前
2023.12.23-22023/12/232 年前
2023.12.23-12023/12/232 年前
2023.12.23-02023/12/232 年前
2022.11.18-02022/11/183 年前
2022.9.1-02022/09/024 年前

关于 @exabyte-io/periodic-table.js 的常见问题

@exabyte-io/periodic-table.js 是什么?

Data about chemical elements arranged in JSON format

如何安装 @exabyte-io/periodic-table.js?

在项目目录运行 npm install @exabyte-io/periodic-table.js,或使用 pnpm add / yarn add / bun add。

@exabyte-io/periodic-table.js 支持 TypeScript 吗?

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

@exabyte-io/periodic-table.js 支持 ESM 还是 CommonJS?

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

@exabyte-io/periodic-table.js 需要什么版本的 Node.js?

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

@exabyte-io/periodic-table.js 可以商用吗?

@exabyte-io/periodic-table.js 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@exabyte-io/periodic-table.js 的下载量有多少?

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

@exabyte-io/periodic-table.js 还在维护吗?

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