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

stream-web

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

stream-web - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

dist/utils.js

34

dist/main.js
'use strict';
var _stream = require('./stream');
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.tryGetFromStreamList = undefined;
(0, _stream.tryGetFromStreamList)({
'bla': 'http://bla'
});
var _utils = require('./utils');
var _pytils = require('pytils');
var _streamPromise = function _streamPromise(getPathFrom) {
return function (fileName, url) {
(0, _utils.cannotBeUndefined)({ fileName: fileName, url: url });
return (0, _utils.stream)(url, getPathFrom(fileName));
};
};
var tryGetFromStreamList = exports.tryGetFromStreamList = function tryGetFromStreamList(streamList) {
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : './download';
var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'vd';
var format = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'mp4';
var streamPromise = _streamPromise((0, _utils.getPathToFile)(path, prefix, format));
var promiseList = (0, _pytils.mapx)(streamList, function (fileName, url) {
return streamPromise(fileName, url);
});
Promise.all(promiseList).then(function (res) {
return console.log('End all download\'s', res);
});
};

2

package.json
{
"name": "stream-web",
"version": "0.5.0",
"version": "0.5.1",
"description": "stream video using crawls",

@@ -5,0 +5,0 @@ "main": "dist/main.js",

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