
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
A small module that takes a DOM tree and returns all Digital Object Identifiers (DOIs) located in that tree's metadata.
Unfortunately, academic publishers use a wide variety of metadata "standards". This package normalises between Dublin Core, Highwire Press tags, etc., and the different formatting rules used for DOIs.
To use this library outside of a browser context, you can use a library like jsdom.
This project also includes TypeScript type definitions.
npm install get-dois --save
import { getDois } from 'get-dois';
const head = document.getElementsByTagName('head').item(0);
const dois = getDois(head);
//=> [ '10.31222/osf.io/796tu' ]
getDois(domTree: Document | Element): string[]
domTree
Either window.document
or an HTML element whose children might include meta tags containing a DOI.
An array of DOIs. If no DOIs are found, this will return an empty array. Duplicate DOIs will only be listed once. Note that a page might list multiple DOIs.
At the time of writing, get-dois
supports detecting DOIs embedded in a webpage as:
citation_doi
)eprints.id_number
and/or eprints.official_url
)bepress_citation_doi
)prism.doi
)dc.identifier
)If you encounter a different format that is not yet supported, please file an issue.
See CHANGELOG.md
.
MIT © Vincent Tunru
[3.2.0] - 2022-09-17
FAQs
Detect Digital Object Identifiers listed in the metadata of a DOM tree
The npm package get-dois receives a total of 29 weekly downloads. As such, get-dois popularity was classified as not popular.
We found that get-dois demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.