From 3e3fa673521be898eda6b1594f114880ddd5e8c5 Mon Sep 17 00:00:00 2001 From: Lacy Morrow Date: Mon, 26 Feb 2018 23:19:48 -0800 Subject: [PATCH] update demo --- cli.js | 2 +- demo.svg | 2 +- index.js | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli.js b/cli.js index a36bb09..ddcbd18 100644 --- a/cli.js +++ b/cli.js @@ -5,7 +5,7 @@ const movieArt = require( './index' ) const cli = meow( ` Usage - $ movie-art movie [year] [size] [type] [output] + $ movie-art search [year] [size] [type] [output] Options --year, -y Release date year diff --git a/demo.svg b/demo.svg index efc5d5f..cb89d85 100644 --- a/demo.svg +++ b/demo.svg @@ -1 +1 @@ -npmnpminpmi-gnpmi-gmovie-art░░░░░░░░░░░░░░░░░░rollbackFailedOptional:0verbnpm-session4d5234ba77fb9372░░░░░░░░░░░extract:movie-art:0verblockusing/Users/tmorrow/.npm/_locks/stag/usr/local/bin/movie-art->/usr/local/lib/node_modules/movie-art/cli.js+movie-art@1.0.7added1packagein0.765smovie-artGetamovieposterimageurlinnode:OceansElevenhttp://path/to/oceans_eleven_poster.jpgUsage$movie-artmovie[year][size][type]Example$movie-art'OceansEleven'1960http://path/to/oceans_eleven_poster_1960.jpgAvailablesizes:w92,w154,w185,w342,w500,w780,originalmovie-artmovie-artcrashhttp://image.tmdb.org/t/p/original/pG8LL4LYMCr5uikhx9rewrW8352.jpgnnpnpmi-npmi-gmnpmi-gmonpmi-gmovnpmi-gmovinpmi-gmovienpmi-gmovie-npmi-gmovie-anpmi-gmovie-ar░░░░░░░░░░░diffTrees:sillinstallgenerateActionsToTakem░░░░░░░░░░░extract:movie-art:0verblockusing/Users/tmorrow/.npm/_locks/stag░░░░░░install:movie-art:infolifecyclemovie-art@1.0.7~install:movie-ammomovmovimoviemovie-movie-amovie-armmomovmovimoviemovie-movie-amovie-armovie-artcmovie-artcrmovie-artcramovie-artcras \ No newline at end of file +npmnpminpmi-gnpmi-gmovie-art░░░░░░░░░░░░░░░░░░rollbackFailedOptional:0verbnpm-session9d165b1b9bbb38a6░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleeslint@4.18.1checkinginsta░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleeslint@4.18.1checkinginsta░░░░░░░░░░░extract:movie-art:0verblockusing/Users/tmorrow/.npm/_locks/staging░░░░░░extract:ajv:sillextracthas-ansi@2.0.0░░░░░░extract:eslint:sillextracthas-ansi@2.0.0░░░░░░refresh-package-json:movie-art:sillfinalize/usr/local/lib/node_mod░░░░░░refresh-package-json:ansi-regex:sillrefresh-package-json/usr/local/usr/local/bin/movie-art->/usr/local/lib/node_modules/movie-art/cli.js0npm0npmWARN0npmWARNajv-keywords@3.1.0requiresapeerofajv@^6.0.0butnoneisinstalled.Youmustinstallpeerdependenciesyourself.+movie-art@2.0.0added187packagesin5.268smovie-artFetchartforamovieortvshow:'OceansEleven'http://path/to/oceans_eleven_poster.jpgUsage$movie-artmovie[year][size][type][output]Options--year,-yReleasedateyear--size,-sPossiblevalues:[w92,w154,w185,w342,w500,w780,original]--type,-tPossiblevalues:[tv,movie]--output,-oPossiblevalues:[poster,backdrop,all]Example$movie-art'OceansEleven'--year1960//=>...movie-artmovie-art'StarTrek'http://image.tmdb.org/t/p/original/6V0CY7pwdDOCDS2XqNWahmIlVYh.jpgmovie-art'StarTrek'movie-art'StarTrek'--typemovie-art'StarTrek'--typetvhttp://image.tmdb.org/t/p/original/3ATqzWYDbWOV2RBLWNwA43InT60.jpgmovie-art'StarTrek'--typetv--outputmovie-art'StarTrek'--typetv--outputall{backdrop:'http://image.tmdb.org/t/p/original/d0JLR2ostmBfHecj2omBCjspVW2.jpg',poster:'http://image.tmdb.org/t/p/original/3ATqzWYDbWOV2RBLWNwA43InT60.jpg'}nnpnpmi-npmi-gmnpmi-gmonpmi-gmovnpmi-gmovinpmi-gmovienpmi-gmovie-npmi-gmovie-anpmi-gmovie-ar░░░░░░░░░░░░░░░░░░rollbackFailedOptional:0verbnpm-session9d165b1b9bbb38a6░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulemovie-art@2.0.0checkingins░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulemovie-art@2.0.0checkingins░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleeslint@4.18.1checkinginsta░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleeslint@4.18.1checkinginsta░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuletext-table@0.2.0checkingin░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulejson-schema-traverse@0.3.1c░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulejs-tokens@3.0.2checkingins░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulesupports-color@5.2.0checkin░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulecolor-name@1.1.3checkingin░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulehas-flag@3.0.0checkinginst░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulereadable-stream@2.3.4checki░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulesafe-buffer@5.1.1checkingi░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulewhich@1.3.0checkinginstall░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleshebang-regex@1.0.0checking░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulems@2.0.0checkinginstallabl░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleestraverse@4.2.0checkingin░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleobject-assign@4.1.1checking░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuledel@2.2.2checkinginstallab░░░░░░░░░░░░░░░░░░loadDep:pinkie-promise:sillresolveWithNewModulerimraf@2.6.2checki░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulearrify@1.0.1checkinginstal░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulearray-uniq@1.0.3checkingin░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulewrappy@1.0.2checkinginstal░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulebrace-expansion@1.1.11check░░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulepinkie@2.0.4checkinginstal░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleminimist@0.0.8checkinginst░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleminimist@0.0.8checkinginst░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulerestore-cursor@2.0.0checkin░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulemimic-fn@1.2.0checkinginst░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuletmp@0.0.33checkinginstalla░░░░░░░░░░░░░░░░░loadDep:strip-ansi:sillresolveWithNewModuleis-promise@2.1.0checki░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleansi-regex@3.0.0checkingin░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulesprintf-js@1.0.3checkingin░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulewordwrap@1.0.0checkinginst░░░░░░░░░░░░░░░░░loadDep:string-width:sillresolveWithNewModulecallsites@0.2.0check░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleslice-ansi@1.0.0checkingin░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleslice-ansi@1.0.0checkingin░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulemap-obj@2.0.0checkinginsta░░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulearray-find-index@1.0.2check░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModuleis-plain-obj@1.1.0checking░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulebuiltin-modules@1.1.1checki░░░░░░░░░░░░░░░░loadDep:spdx-license-ids:sillresolveWithNewModulespdx-license-ids@░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulespdx-license-ids@3.0.0check░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulelocate-path@2.0.0checkingi░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulep-limit@1.2.0checkinginsta░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulep-try@1.0.0checkinginstall░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulestrip-bom@3.0.0checkingins░░░░░░░░░░░░░░░░fetchMetadata:sillresolveWithNewModulepify@3.0.0checkinginstalla░░░░░░░░░░░░diffTrees:sillinstallgenerateActionsToTake░░░░░░░░░░░extract:co:sillextractyallist@2.1.2░░░░░░░░░░extract:color-name:sillextractoptionator@0.8.2░░░░░░░░░░extract:espree:sillextracttrim-newlines@2.0.0░░░░░░░░░░extract:yallist:sillextractargparse@1.0.10░░░░░░░░░extract:write:sillextractcamelcase-keys@4.2.0░░░░░░░░extract:require-uncached:sillextractobject-assign@4.1.1░░░░░░░░extract:process-nextick-args:sillextractis-path-cwd@1.0.0░░░░░░░extract:is-builtin-module:sillextracthas-ansi@2.0.0░░░░░░░extract:iconv-lite:sillextracthas-ansi@2.0.0░░░░░░extract:minimist-options:sillextracthas-ansi@2.0.0░░░░░░finalize:caller-path:sillfinalize/usr/local/lib/node_modules/movie░░░░░░finalize:functional-red-black-tree:sillfinalize/usr/local/lib/node░░░░░░finalize:path-is-inside:sillfinalize/usr/local/lib/node_modules/mo░░░░░░finalize:strip-json-comments:sillfinalize/usr/local/lib/node_modul░░░░░░finalize:eslint:sillfinalize/usr/local/lib/node_modules/movie-art/░░░░░░refresh-package-json:graceful-fs:sillrefresh-package-json/usr/loca░░░░░░refresh-package-json:acorn:sillrefresh-package-json/usr/local/lib/░░░░░░refresh-package-json:movie-art:sillrefresh-package-json/usr/local/░░░░░░refresh-package-json:object-assign:sillrefresh-package-json/usr/lo░░░░░░refresh-package-json:natural-compare:sillrefresh-package-json/usr/░░░░░░build:movie-art:silldoSerialbuild1496░░░░░░build:read-pkg-up:0verblinkMansread-pkg-up@3.0.0░░░░░░postinstall:movie-art:infolifecyclemovie-art@2.0.0~postinstall:mommomovmovimoviemovie-movie-amovie-armmomovmovimoviemovie-movie-amovie-armovie-art'movie-art'Smovie-art'Stmovie-art'Stamovie-art'Starmovie-art'StarTrmovie-art'StarTremovie-art'StarTrekmovie-art'StarTrek'-movie-art'StarTrek'--movie-art'StarTrek'--tmovie-art'StarTrek'--tymovie-art'StarTrek'--typmovie-art'StarTrek'--typetmovie-art'StarTrek'--typetv-movie-art'StarTrek'--typetv--movie-art'StarTrek'--typetv--omovie-art'StarTrek'--typetv--oumovie-art'StarTrek'--typetv--outmovie-art'StarTrek'--typetv--outpmovie-art'StarTrek'--typetv--outpumovie-art'StarTrek'--typetv--outputamovie-art'StarTrek'--typetv--outputal \ No newline at end of file diff --git a/index.js b/index.js index 110f712..149c795 100644 --- a/index.js +++ b/index.js @@ -97,7 +97,7 @@ opts.output = 'poster' } - + console.log(opts.output) // Get configuration vars const { baseURL, sizes } = await getConfiguration() diff --git a/package.json b/package.json index a4304dd..86516f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "movie-art", - "version": "2.0.0", + "version": "2.0.1", "description": "Fetch art for a movie or tv show: 'Oceans Eleven' ➔ http://path/to/oceans_eleven_poster.jpg", "license": "MIT", "repository": "lacymorrow/movie-art",