Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@musicorum/lastfm
Advanced tools
Fully typed [Last.fm](https://last.fm) api client library written and made for Typescript!
Weekly downloads
Readme
Fully typed Last.fm api client library written and made for Typescript!
Warning This library is still in alpha and on heavy development. Expect incomplete stuff and future changes.
import { LastClient } from '@musicorum/lastfm'
const client = new LastClient('e8077692fe0485f6b474fdab331793c')
async function main() {
// Original response from API (with types)
const user1 = await client.request('user.getInfo', { user: 'metye' })
// Formated response for better experience
const user2 = await client.user.getInfo('metye')
console.log(
user1.user.playcount,
user2.playCount
)
// Pagination
const recentTracks = await client.user.getRecentTracksPaginated('metye')
console.log(`${recentTracks.totalResults} results in ${recentTracks.totalPages} pages`)
const page1 = recentTracks.getPage(1)
const page2 = await recentTracks.fetchPage(2)
console.log('Last scrobble:', page1[0].name, page1[0].nowPlaying ? ' - Now playing' : '')
}
main()
FAQs
Fully typed [Last.fm](https://last.fm) api client library written and made for Typescript!
The npm package @musicorum/lastfm receives a total of 0 weekly downloads. As such, @musicorum/lastfm popularity was classified as not popular.
We found that @musicorum/lastfm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.