npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

netease-cloud-music

v1.0.3

Published

netease cloud music api

Downloads

4

Readme

netease-cloud-music

install

npm install netease-cloud-music

useage

var neteaseMusic = require('netease-cloud-music')

neteaseMusic.comments(386830).then((data)=> {
    	console.log(data)
	},(err)=> {
		console.log(err)
})

default

 @param {number} offset 分页偏移量
 @param {number} limit 每页条数(最大100)
 这两个参数默认值为{offset:0,limit:100}
 未传时使用默认值

api

search 搜索

/**搜索
 *  @param {string} name 搜索内容
 *  @param {number} offset 分页偏移量
 *  @param {number} limit 每页条数
 *  @param {number} searchType 类型
 * 1/单曲 10/专辑 100/歌手 1000/歌单 1002/用户 1004/MV 1006/歌词 1009/主播电台
 */
neteaseMusic.search(name,offset,limit,searchType)

topPlaylists 热门歌单

/**获取热门歌单
*  @param {number} offset 分页偏移量
*  @param {number} limit 返回条数
*/
neteaseMusic.topPlaylists(offset,limit)

userPlaylists 用户歌单

/**获取用户歌单
 *  @param {number} uid 用户id
 *  @param {number} offset 分页偏移量
 *  @param {number} limit 返回条数
 */
neteaseMusic.userPlaylists(uid,offset,limit)

fm 私人FM

neteaseMusic.fm()

playlists 根据id获取歌单

/**根据id获取歌单
 *  @param {number} id 歌单id
 */
neteaseMusic.playlists(id)

artistAlbums 根据歌手id专辑

/**根据歌手id获取专辑
 *  @param {number} id 歌手id
 *  @param {number} offset 分页偏移量
 *  @param {number} limit 返回条数
 */
neteaseMusic.artistAlbums(id,offset,limit)

album 根据id获取专辑

/**根据id获取专辑
 *  @param {number} id 专辑id
 */
neteaseMusic.album(id)

lrc 根据id获取歌词

/**根据id获取歌词
 *  @param {number} id 歌曲id
 */
neteaseMusic.lrc(id)

song 根据id获取歌曲信息

/**根据id获取歌曲信息
 *  @param {number} id 歌曲id
 */
neteaseMusic.song(id)

login 用户登陆

/**登录
 *  @param {number} phone 手机号
 *  @param {string} password 密码
 *  @param {boolean} rememberLogin 是否记住密码
 */
neteaseMusic.login(phone,password,rememberLogin)

newAlbum 新碟上架

/**新碟上架
 *  @param {number} limit 返回条数
 *  @param {number} offset 分页偏移量
 */
neteaseMusic.newAlbum(offset,limit)

hotArtist 热门歌手

/**热门歌手
 *  @param {number} limit 返回条数
 *  @param {number} offset 分页偏移量
 */
neteaseMusic.hotArtist(offset,limit)

comments 评论

/**
 * 根据歌曲id获取歌曲评论
 *  @param {number} id 歌曲id
 *  @param {number} limit 返回条数
 *  @param {number} offset 分页偏移量
 */
neteaseMusic.comments(id,offset,limit)

getFans 获取粉丝列表

/**获取粉丝列表
 *  @param {number} uid 用户id
 *  @param {number} limit 请求条数
 *  @param {number} offset 起始标记
 */
neteaseMusic.getFans(uid,offset,limit)

getFollows 获取关注的人

/**获取关注的人
 *  @param {number} uid 用户id
 *  @param {number} limit 请求条数
 *  @param {number} offset 分页偏移量
 */
neteaseMusic.getFollows(uid,offset,limit)

getEvent 获取好友动态

/**获取好友动态
 *  @param {number} offset 分页偏移量
 *  @param {number} limit 单页返回条数
 */
neteaseMusic.getEvent(offset,limit)

follow 关注用户

/**关注用户
 *  @param {number} uid 用户id
 */
neteaseMusic.follow(uid)

delFollow 取消关注

/**取消关注
 *  @param {number} uid 用户id
 */
neteaseMusic.delFollow(uid)

addComment 发表评论

/**发表评论
 *  @param {number} songId 歌曲id
 *  @param {string} content 评论内容
 */
neteaseMusic.addComment(songId,content)

replyComment 回复评论

/**回复评论
 *  @param {number} songId 歌曲id
 *  @param {number} commentId 评论id
 *  @param {string} content 评论内容
 */
neteaseMusic.replyComment(songId,commentId,content)

delComment 删除评论

/**删除评论
 *  @param {number} songId 歌曲id
 *  @param {number} commentId 评论id
 */
neteaseMusic.delComment(songId,commentId)

like 点赞

/**点赞
 *  @param {number} songId 歌曲id
 *  @param {number} commentId 评论id
 */
neteaseMusic.like(songId,commentId)

unlike 取消点赞

/**取消点赞
 *  @param {number} songId 歌曲id
 *  @param {number} commentId 评论id
 */
neteaseMusic.unlike(songId,commentId)

dailyRecommend 每日推荐

/**
 * 每日推荐
 *  @param {number} limit 返回条数
 *  @param {number} offset 分页偏移量
 */
neteaseMusic.dailyRecommend(offset,limit)

thanks

https://github.com/Himmas/NeteaseMusicApi