Current collected state Current
Observed since 20 Oct, 18:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
NeteaseMusicApi's TypeScript Version
NeteaseMusicApi's TypeScript Version
Install TypeScript in global is recommended.
[sudo] npm -g install typescript
Clone it in your project.
git clone https://github.com/pboymt/TypeCloudMusic.git
npm install
Compile to JavaScript.
tsc
Import in TypeScript.
import { search, album, artistAlbums, comments } from './lib/main';
Import in JavaScript.
const { search, album, artistAlbums, comments } = require('./dist/main');
e.g. id is '周杰伦'
// Callback
search('周杰伦', (data) => {
console.log(data);
});
// Promise
search('周杰伦')
.then((data) => {
console.log(data);
})
.catch((err) => {
console.log(err);
});
e.g. id is 34944913
// Callback
album(34944913, (data) => {
console.log(data);
});
// Promise
album(34944913)
.then((data) => {
console.log(data);
})
.catch((err) => {
console.log(err);
});
e.g. id is 6452
// Callback
artistAlbums(6452, (data) => {
console.log(data);
});
// Promise
artistAlbums(6452)
.then((data) => {
console.log(data);
})
.catch((err) => {
console.log(err);
});
e.g. id is 1234
// Callback
comments(30394891, (data) => {
console.log(data);
});
// Promise
comments(30394891)
.then((data) => {
console.log(data);
})
.catch((err) => {
console.log(err);
});
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.3Registry latest | 4 Dec 2016 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:04c1bec01e463dd2d98294bf4f14e3535abdba86f657fe04ce8a5fad61c40f6e