{"analyzedAt":"2022-07-10T03:24:52.386Z","collected":{"metadata":{"name":"eztv-b","scope":"unscoped","version":"1.1.1","description":"Interact with EZTV's beta API","keywords":["torrent","eztv","torrent search"],"date":"2019-01-27T01:44:30.799Z","author":{"name":"Grant Holle","url":"https://github.com/grantholle"},"publisher":{"username":"grantholle","email":"hollegrant@gmail.com"},"maintainers":[{"username":"grantholle","email":"hollegrant@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/grantholle/eztv.git"},"links":{"npm":"https://www.npmjs.com/package/eztv-b","homepage":"https://github.com/grantholle/eztv#readme","repository":"https://github.com/grantholle/eztv","bugs":"https://github.com/grantholle/eztv/issues"},"license":"MIT","devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.0","mocha":"^5.2.0","nyc":"^13.1.0","standard":"^12.0.1"},"releases":[{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2020-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1}],"hasTestScript":true,"readme":"# EZTV\n\nThis is a very simple api wrapper in Node using Promises. This uses the official [beta] [api for EZTV](https://eztv.ag/api/).\n\n## Installation\n\n```bash\nnpm i eztv-b --save\n```\n\n## Usage\n\n### Initialize\n\n```javascript\nconst Eztv = require('eztv-b')\n\n// Create a new instance of the module.\nconst eztv = new Eztv()\n```\n\n### `getTorrents()`\n\nThe only method, `getTorrents()`, takes an object of parameters to be passsed to the api: `imdb_id`, `page`, and/or `limit`. You don't have to pass anything in, it will just list recent files. According to the [documentation](https://eztv.ag/api/), the max you can have per page is 100.\n\n```javascript\n// Search by the imdb id\neztv.getTorrents({\n  imdb_id: 4574334\n  // page: 1\n  // limit: 1\n})\n.then(response => {\n  console.log(response)\n  // Output:\n  // {\n  //   \"imdb_id\": \"4574334\",\n  //   \"torrents_count\": 44,\n  //   \"limit\": 30,\n  //   \"page\": 1,\n  //   \"torrents\": [\n  //     {\n  //       \"id\": 416781,\n  //       \"hash\":\"0f7be5652c8edab38b93d2ed00fa619fb015b5e8\",\n  //       \"filename\":\"Stranger.Things.S02E09.720p.WEBRip.x264-STRiFE[eztv].mkv\",\n  //       \"episode_url\":\"https:\\/\\/eztv.ag\\/ep\\/416781\\/stranger-things-s02e09-720p-webrip-x264-strife\\/\",\n  //       \"torrent_url\":\"https:\\/\\/zoink.ch\\/torrent\\/Stranger.Things.S02E09.720p.WEBRip.x264-STRiFE[eztv].mkv.torrent\",\n  //       \"magnet_url\":\"magnet:?...\",\n  //       \"title\":\"Stranger Things S02E09 720p WEBRip x264-STRiFE EZTV\",\n  //       \"imdb_id\":\"4574334\",\n  //       \"season\":\"2\",\n  //       \"episode\":\"9\",\n  //       \"small_screenshot\":\"\\/\\/ezimg.ch\\/thumbs\\/stranger-things-s02e09-720p-webrip-x264-strife-small.jpg\",\n  //       \"large_screenshot\":\"\\/\\/ezimg.ch\\/thumbs\\/stranger-things-s02e09-720p-webrip-x264-strife-large.jpg\",\n  //       \"seeds\":527,\n  //       \"peers\":229,\n  //       \"date_released_unix\":1509112801,\n  //       \"size_bytes\":\"1242151349\"\n  //     },\n  //     {\n  //       \"id\":416777,\n  //       ...\n  //     }\n  //   ]\n  // }\n})\n.catch(err => console.error(err))\n\n// List recent torrents\neztv.getTorrents()\n  .then(response => {\n    ...\n  })\n  .catch(err => console.error(err))\n```\n\n## License\n\nMIT"},"npm":{"downloads":[{"from":"2022-07-09T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2022-07-03T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":11},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":93},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":149},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":256}],"starsCount":0},"github":{"starsCount":2,"forksCount":1,"subscribersCount":1,"issues":{"count":1,"openCount":0,"distribution":{"3600":1,"10800":0,"32400":0,"97200":0,"291600":0,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":0},"isDisabled":false},"contributors":[{"username":"grantholle","commitsCount":9}],"commits":[{"from":"2022-07-03T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0}]},"source":{"files":{"readmeSize":2144,"testsSize":1716},"linters":["standard"]}},"evaluation":{"quality":{"carefulness":0.84,"tests":0.6,"health":1,"branding":0},"popularity":{"communityInterest":5,"downloadsCount":31,"downloadsAcceleration":-0.05207382039573821,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":1,"issuesDistribution":1}},"score":{"final":0.6093176318025558,"detail":{"quality":0.8262967790528932,"popularity":0.03270869994978603,"maintenance":0.9999444374407507}}}