Results 87 comments of fent

does `import util from 'ytdl-core/lib/util` work?

ah, well I plan on converting this library to ts in the future, which will generate definitions for each source file otherwise, there's this guide https://nodejs.org/api/esm.html#esm_dual_commonjs_es_module_packages

ytdl uses `process.stdout.isTTY` to know if the program is piping to a terminal. if that property is false, it will assume the program is being piped to another program, so...

yep, i was already planning this, but hadn't recorded it in an issue yet. just need to find the time to 😅 > and do you mind if I show...

those are all exported by ytdl so that they can be used by users. they're also exported in `index.js`, but i also want to support someone only importing `info.js`

> why user can't import them from entry point directly? 0_o i wanted to make both available. in another repo i've compiled ytdl-core from `info.js`, without `index.js`, and wanted the...

> * How can I prevent this? I'd like to have some sort of rate throttling so it doesn't incur into 429 errors. It renders ytdl completely unusable for a...

the way that `console.log` prints objects, it will put quotes around attribute names that contain a non-alphanumeric character, it does not affect the actual internal attribute name used. as for...

> ![Screenshot_20200818_130349](https://user-images.githubusercontent.com/12554146/90487312-bbf2ad00-e153-11ea-9c02-345c3cbc95cc.png) > > Does not seem to work on a server that's already blocked. > > ![Screenshot_20200818_131032](https://user-images.githubusercontent.com/12554146/90487762-5652f080-e154-11ea-94b2-35cd3eac4129.png) > > Edit: Same request works fine in Postman. it's showing 10...