Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any chance of supporting use from node.js? #6

Open
songololo opened this issue Apr 13, 2021 · 1 comment
Open

Any chance of supporting use from node.js? #6

songololo opened this issue Apr 13, 2021 · 1 comment

Comments

@songololo
Copy link

A request to please support imports from node.js using the require style of imports!

Thanks.

@alaingalvan
Copy link
Member

So the current distribution in NPM does support using require in addition to the import x syntax.

const {parse} = require('bibtex-bibjson');

// Load your bibtex files...

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants