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

cvelist

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cvelist

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

cvelist.rb

  • Homepage
  • Issues
  • Documentation
  • [Email](mailto:postmodern.mod3 at gmail.com)

Description

A Ruby library for parsing the CVE JSON in the cvelist git repository.

Features

Examples

require 'cvelist'

Cloning the cvelist repository:

repo = CVEList::Repository.clone('path/to/cvelist')

Using an existing cvelist repository:

repo = CVEList::Repository.new('path/to/cvelist')

Updating an existing cvelist repository:

repo.pull!

Get the total number of CVEs in the repository:

repo.size

Access an individual CVE in the repository:

repo['CVE-2020-0001']

Enumerating over every CVE in the repository:

repo.each do |cve|
  puts cve.id
end

Enumerating over every CVE in a certain year:

repo.year(2020).each do |cve|
  puts cve.id
end

Requirements

Install

$ gem install cvelist

Benchmark

Warming up the disk cache with a first run. This may take a while ...
Parsing all 192879 CVE .json files ...

Total:	 18.285097   1.651155  19.936252 ( 20.144566)
Avg:	  0.000095   0.000009   0.000103 (  0.000104)

Copyright (c) 2020-2021 Hal Brodigan

See {file:LICENSE.txt} for details.

FAQs

Package last updated on 14 Jan 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