Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bibtex-bibjson

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bibtex-bibjson

📚 A tool to convert BibTeX documents to BibJSON.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

BibTex-BibJson

Npm Package License Travis Tests

Installation

npm i bibtex-bibjson -S

A tool to convert BibTeX citations to BibJSON.

Usage & Demo

Check out our Demo to try it out for yourself!

import {openFileSync} from 'fs';
import {parse} from 'bibtex-bibjson';

// Read file as string
let bibTexStr = openFileSync('./citations.bib');

// {} Convert to BibJson
// function parse(bibTexStr: string): object
let bibJson: Object = parse(bibTexStr);

Example

@article{hasselgren2020,
    author = {Hasselgren, Jon and Munkberg, J. and Salvi, Marco and Patney, A. and Lefohn, Aaron},
    year = {2020},
    title = {Neural Temporal Adaptive Sampling and Denoising},
    journal = {Computer Graphics Forum}
}

Becomes:

{
    "hasselgren2020": {
        "author": [
            { "name": "Jon Hasselgren" },
            { "name": "J. Munkberg" },
            { "name": "Marco Salvi" },
            { "name": "A. Patney" },
            { "name": "Aaron Lefohn" }
        ],
        "year": 2020,
        "title": "Neural Temporal Adaptive Sampling and Denoising",
        "journal": "Computer Graphics Forum",
    }
}

License

bibtex-bibjson is licensed as either MIT or Apache-2.0, whichever you would prefer.

Keywords

FAQs

Package last updated on 02 Dec 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc