Getting Started
Prerequisites
- Node.js >= 22.12.0
- ESM project (NCMGET is an ES module)
Installation
Install NCMGET as a dependency in your project:
Basic Usage
Search and Download
Get Song Details
Get Lyrics
Get Cover Image
Understanding the Return Format
All NCMGET methods return Promise<string>. The string is a JSON representation of the result data. You need to call JSON.parse() to work with the data as a JavaScript object:
When format mode is disabled (via .format(false)), the raw API response is returned instead. See Advanced Usage for details.
Next Steps
- API Reference — Complete method documentation
- Types — TypeScript type definitions
- Advanced — Cookie, encryption, and error handling
