Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
musixmatch
Advanced tools
Readme
NodeJS module musixmatch API The simplified NodeJS module for request Musixmatch API support. Inspire by https://github.com/c0b41/musixmatch. Request are pretty awesome, but I found myself using it into NodeJS
Also check out here to using the methods that are very similar to request
Add musixmatch
dependency to your project
npm install musixmatch # or yarn add musixmatch
You need to setup initial configuration you can use all Musixmatch services then followed by method
const Musixmatch = require("musixmatch");
const init = {
// Required from Musixmatch.com
apikey: '<Your Musicmatch API Key>',
// Optional default 'https://api.musixmatch.com/ws/1.1/'
// baseURL will be prepended to `url` unless `url` is absolute.
baseURL: 'https://api.musixmatch.com/ws/1.1/',
// Optional if you have problem with CORS, default is 'https://cors-anywhere.herokuapp.com/'
// if you want remove prefix CORS url set value tobe ''
corsURL: '<Your cors url>',
// Optional default is 'Json'
format: 'json'
// More Optional Fetches API request
options: {
// `headers` are custom headers to be sent
headers: {......}
}
}
const msx = Musixmatch(init)
These are the available config options for making requests, for more information https://github.com/axios/axios#request-config
For more information how to use Methods and Params with example... please refer to https://github.com/c0b41/musixmatch#methods
import Musixmatch from 'musixmatch'
const msx = Musixmatch({apikey: '<Api Key>'})
msx.chartArtists({ country: 'us', page: 1, page_size: 3 }).then(function (data) {
console.log(data.artist_list)
}).catch(function (err) {
console.log(err.stack)
})
Copyright (c) IMAN Thanks to: https://www.axfon.com https://atel.us
FAQs
Fetches Lyrics from Musixmatch API
The npm package musixmatch receives a total of 3 weekly downloads. As such, musixmatch popularity was classified as not popular.
We found that musixmatch 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.