Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Easiest way to use the Discogs API in Javascript - now with Typescript support! :musical_note:
yarn add discojs
import {Discojs} from 'discojs'
const client = new Discojs({
userToken: process.env.USER_TOKEN,
})
client
.searchArtist('Jacob Desvarieux')
.then(data => doSomethingWith(data))
Documentation for discojs@2.x
is available on GitHub Pages;
Documentation for discojs@1.x
is available in the wiki.
As several methods need authentication, you'll need 2 environment variables: DGS_USERNAME and USER_TOKEN.
Create a .env
file at the root of the directory, and add the following lines:
DGS_USERNAME=0ctocat
USER_TOKEN=7h1515myu53r70k3n
:warning: Use a test account as public information will be edited.
As stated by Discogs API, some methods need a seller account. As I do not have one, I could not test them (which explains the coverage).
npm run test
When running tests, go grab a cup of coffee as this may be long because of Discogs API rate limiting.
Inspired by disconnect
from @bartve
FAQs
Easiest way to use the Discogs API in Javascript/Typescript
We found that discojs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.