mirror of
https://github.com/p-stream/providers.git
synced 2026-04-21 13:52:18 +00:00
refactor: use util.inspect instead of a stringify
This commit is contained in:
parent
7feaf9256f
commit
791caa88fd
1 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
import util from 'node:util';
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||||
import { program } from 'commander';
|
import { program } from 'commander';
|
||||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||||
|
|
@ -47,6 +49,10 @@ if (!TMDB_API_KEY?.trim()) {
|
||||||
throw new Error('Missing MOVIE_WEB_TMDB_API_KEY environment variable');
|
throw new Error('Missing MOVIE_WEB_TMDB_API_KEY environment variable');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showOutput(object: object) {
|
||||||
|
console.log(util.inspect(object, { showHidden: false, depth: null, colors: true }));
|
||||||
|
}
|
||||||
|
|
||||||
function getAllSources() {
|
function getAllSources() {
|
||||||
// * The only way to get a list of all sources is to
|
// * The only way to get a list of all sources is to
|
||||||
// * create all these things. Maybe this should change
|
// * create all these things. Maybe this should change
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue