bibtex

Library for parsing a BiBTeX file in pure Javascript / Typescript

bibtex-js

Live demo in browser

Library for parsing BibTeX .bib files, based mostly on the excellent guide to BibTeX, Tame the BeaST.

Written in Typescript, compiled to ES5 Javascript (with typings provided).

This module literally just parses a BibTex file and processes it as far as BibTeX goes. It doesn't process TeX commands (i.e., {\"o} is not translated to ö). If you want to actually work with a bibliography, look for Bibliography.js.

Implementation

Not all internal BibTeX functions are implemented, simply because I don't need them personally. Most notably sorting entries is still an open issue because BibTeX has a little complicated algorithm which required a function that "purifies" field values, which for example makes {\ss} equivalent to ss but makes ä come after z. I am unsure if that is actually what anyone wants in modern days though. A modern approach would be to use Unicode collation and then sort.

Pull requests and issues are welcome.

Usage

------ -------------- ---- ---------

----- ------- - --------------

-----------------------
  ------    - -------- ------------- --- -------- ----- --- ------- -----
  -----     - ------------- ---------- -------- --- -------------- -------- --- -------- ------------
  --------- - ------------ -- ------------- ----------- ------- --- ------- -------- ------------
  -----     - -------
  ----      - -------
  -------   - ---------- --------
  --------- - ------------ --- ------------- -------------
  ---       - -------------------------------------------
  ----- - --------
-
---

------------
    -- ---- --- ----------------
    ---------------------------------------------
-- -- ------ ---- ----------- ------

License

MIT

HomePage

https://github.com/digitalheir/bibtex-js#readme

Repository

git+ssh://git@github.com/digitalheir/bibtex-js.git

来源:JavaScript中文网 ,转载请联系管理员! 本文地址:https://www.javascriptcn.com/post/6005607881e8991b448dea5f


猜你喜欢

  • npm 包 react-qrvideo 使用教程

    QR码作为一种常见的二维码,被广泛应用于移动支付、网站跳转等场景,而 react-qrvideo 是一个基于 React 的二维码生成组件,能够快速、方便的生成符合格式要求的二维码。

    3 年前
  • npm包 react-native-cascade-select 使用教程

    在React Native项目中,我们经常需要使用下拉选择框(dropdown select)或级联选择框(cascade select)控件。而react-native-cascade-select...

    3 年前
  • npm 包 twohill-react-native-gifted-form 使用教程

    在 React Native 前端开发中,twohill-react-native-gifted-form 是一个非常方便的 npm 包,可以让我们快速构建出美观且功能强大的表单页面,极大地提高了开发...

    3 年前
  • npm 包 aor-language-turkish 使用教程

    什么是 aor-language-turkish? aor-language-turkish 是一个 npm 包,用于为 React-Admin 构建的应用提供土耳其语本地化支持。

    3 年前
  • npm 包 util-request 使用教程

    简介 在前端开发中,与后端进行数据交互不可避免。通常情况下,我们需要使用 AJAX 或 fetch 等方法来实现数据请求。而在 AJAX/Fetch 使用过程中,处理复杂请求参数及请求头、Promis...

    3 年前
  • npm 包 node-red-contrib-ucg-conversation 使用教程

    什么是 npm 包? npm 是 Node.js 的软件包管理器,是世界上最大的软件注册表。通过 npm 包,我们能够方便地分享、安装、升级和管理 Node.js 模块。

    3 年前
  • npm 包 flowbot 使用教程

    什么是 flowbot flowbot 是一个基于 Node.js 的自动化工具库,主要用于简化前端开发流程。它支持自动化构建、测试、部署等一系列操作,并且可通过配置文件定制化流程。

    3 年前
  • npm 包 hexo-tag-scripture 使用教程

    什么是 hexo-tag-scripture hexo-tag-scripture 是一个基于 Hexo 博客平台的 npm 包,它提供了一个可以在博客中插入经文引用的 Hexo tag。

    3 年前
  • npm 包 json-to-scss-or-sass 使用教程

    在前端开发中,我们经常需要使用 SCSS 或 Sass 来编写 CSS 文件。但是,手动编写 SCSS 或 Sass 文件有时候会显得有些繁琐。此时,json-to-scss-or-sass 这款 n...

    3 年前
  • npm 包 kl-vue-ui 使用教程

    在前端开发中,UI 组件库是非常重要的一个环节,能够提高开发效率,提升项目质量。kl-vue-ui 是一个基于 Vue.js 的 UI 组件库,提供了一系列常用的组件,比如按钮、表单、对话框、弹出框等...

    3 年前
  • npm 包 set-function-name 使用教程

    在前端开发中,我们经常需要对函数名称进行修改或者添加一些额外的信息。而在 JavaScript 中,我们可以通过 Symbol 和 Object.defineProperty 来设置函数的名称。

    3 年前
  • npm 包 securejwt 使用教程

    随着前端技术的飞速发展,越来越多的应用需要进行用户认证和授权。而 JSON Web Token (JWT) 是一种流行的身份验证和授权方式。npm 包 securejwt 封装了 JWT 的相关接口,...

    3 年前
  • npm 包 bitcore-lib-3dcoin 使用教程

    在前端开发的过程中,我们经常需要使用加密货币相关的功能,比如生成,发送或接收加密货币交易。在这样的情况下,npm 包 bitcore-lib-3dcoin 成为了一个非常有用的工具。

    3 年前
  • npm 包 node-red-contrib-mobius-flow-enocean-switches 使用教程

    前言 在现代化的智能家居中,物联网技术扮演着重要角色。而 Node-RED 是一个流程编排工具,能够将 IoT 设备和自动化任务连接起来。node-red-contrib-mobius-flow-en...

    3 年前
  • npm 包 handlebars-live-templates-ast 使用教程

    简介 handlebars-live-templates-ast 是一个用于在 Handlebars 模板中创建动态元素的 npm 包。它可以帮助前端开发者实现模板中动态的 UI 展示、逻辑与数据的耦...

    3 年前
  • npm 包 node-red-contrib-b3ts-enocean-switches 使用教程

    如果您正在进行物联网开发,并且需要使用 EnOcean(欧拉康)设备通过无线电通信与设备通信,那么 node-red-contrib-b3ts-enocean-switches 就是您需要的 npm ...

    3 年前
  • npm 包 insight-api-3dcoin 使用教程

    简介 insight-api-3dcoin 是一款基于 Node.js 的 npm 包,用于提供 3DCoin 区块链数据统计和查询的 API 服务。它可以帮助开发者快速搭建基于 3DCoin 区块链...

    3 年前
  • npm包events-timeline使用教程

    概述 随着前端技术的不断发展,我们往往需要一些js库来实现我们想要的效果或功能。npm是一个非常著名的js包管理器,我们可以通过搜索npm库,查找合适的库实现我们的需求。

    3 年前
  • npm 包 graphql-mongo-fields 使用教程

    随着前端开发的不断发展,在 Web 开发中,GraphQL 是一种越来越普遍的数据查询语言。凭借其强大的查询功能和优雅的语法,它已经成为了一种流行的技术选择。而 MongoDB 是一个非常流行的 No...

    3 年前
  • npm 包 fetch-a-stream 使用教程

    现代前端开发需要使用各种异步数据获取技术,而 fetch-a-stream 是一款非常优秀的 npm 包,能够让我们轻松地获取数据流而不是一次性获取整个响应。 本文将介绍如何使用 fetch-a-st...

    3 年前

相关推荐

    暂无文章