Socket
Socket
Sign inDemoInstall

bib2json

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bib2json

Javascript parsing of Bibtex to JSON for nodejs and the browser.


Version published
Weekly downloads
36
decreased by-60.44%
Maintainers
1
Install size
13.9 MB
Created
Weekly downloads
 

Readme

Source

bib2json

Javascript Bibtex to JSON for nodejs and the browser. It can:

  • operate in streaming or block mode, extracting entries as arrays of dictionaries.
  • convert Latex directives to UTF-8.
  • best-effort parse malformed entries.
  • run in a CommonJS environment (e.g., node) or a browser, without any dependencies.
  • be advanced-compiled by Google Closure Compiler.
  • parse "real-world" Bibtex, such as those found here.

Handwritten as a labor of love, not cruelly auto-generated from a grammar, tested with Jasmine.

Usage

Synchronous, block mode:

var entries = BibtexParser(text);
console.log(entries);

Asynchronous, stream mode:

var entryCallback = function(entry) { console.log(entry); }
var parser = new BibtexParser(entryCallback);
parser.parse(chunk1);
parser.parse(chunk2);

Keywords

FAQs

Last updated on 26 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc