Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mist-yt

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mist-yt

A simple youtube downloader included in Tsunami

  • 1.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Mist

A simple youtube downloader included in Tsunami

Setup

To install Mist on your site you need to be using nodejs and express

1: Upload the mist folder to your website

2: Setup express

const express = require('express');
const app = express();

3: Add mist

const mist = require("mist-yt");

4: Setup mist

app.use((req, res) => {
if (req.url.startsWith("/watch")) {
  mist.watch(req, res)
} else if (req.url.startsWith("/video")) {
  mist.video(req, res)
}
})

If you want some kind of error page you can set it up like this

app.use((req, res) => {
if (req.url.startsWith("/watch")) {
  mist.watch(req, res)
} else if (req.url.startsWith("/video")) {
  mist.video(req, res)
} else {
  res.send("404 Error)
}
})

Full Result (see /demo)

const express = require('express');
const app = express();
const mist = require("mist-yt");

app.use((req, res) => {
if (req.url.startsWith("/watch")) {
  mist.watch(req, res)
} else if (req.url.startsWith("/video")) {
  mist.video(req, res)
}
})

app.listen(8080, () => {
  console.log('Server running at localhost:8080');
});

Your all setup! Access Mist by going to /watch

Pages

/watch?=videoid&audio=false Main video page

/video?=videoid&audio=false Just the video

Usage

If you wish to use Mist commercially (on your service) you must include credit to Mist somewhere on your service

FAQs

Package last updated on 23 Jan 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc