Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

nishi-yt

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nishi-yt

Simple api youtube downloader is not official from en.loader.to

latest
npmnpm
Version
1.0.4
Version published
Weekly downloads
10
100%
Maintainers
1
Weekly downloads
 
Created
Source

nishi-yt

nishi-yt is a lightweight Node.js API for downloading YouTube media. It supports both video and audio downloads and is not an official tool from en.loader.to.

Features

  • Simple Integration: Easily download YouTube content by providing a URL.
  • Multiple Formats: Choose your desired format (e.g., mp3, mp4). See ./lib/config.js for available formats.
  • Logging Support: Enable logs to monitor the download process.
  • Duplicate Prevention: Optionally save URL IDs to prevent duplicate downloads.

Installation

Install the package via npm or yarn:

npm i nishi-yt --save
yarn add nishi-yt

✍️ Usage

const yt = require("nishi-yt")

⚡ yt.download

// Details, check in files test.js
const yt = require("nishi-yt")

// 📂 Download Media
yt.download({
  yt_link: "https://music.youtube.com/watch?v=m8Zqd58XuoA&list=OLAK5uy_n0t6KymP-tb3EUjViyWXXA4cT1raHJEl8", // Enter the YouTube video url here
  yt_format: "mp3", // Choose several formats to download, you can see it in the script configuration ./lib/config.js
  logs: true, // Just for check running (default: false)
  saveId: true // saves url to load in case anyone downloads with same url id (default: false)
}).then(results => {
  console.log(results)
})

Results, This data appears after the download is complete.

// Results data in time 18/04/2023 (Asia/Jakarta)

{
  info: {
    title: 'Kawaii Aesthetic',
    id: 'm8Zqd58XuoA',
  },
  media: 'https://marilyn7.oceansaver.in/pacific/?k7Ck2foXI1QgGl9rQ37bjBE9HXQ'
}

Keywords

Youtube-dowloader

FAQs

Package last updated on 19 Mar 2025

Did you know?

Socket

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.

Install

Related posts