{"_id":"@bakedoatmeal/news-api-library","name":"@bakedoatmeal/news-api-library","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bakedoatmeal/news-api-library","version":"1.0.0","description":"This news API library allows users to quickly get results from multiple different news APIs (NYT, Guardian, News API) in a standardized format.","main":"api.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","gitHead":"4ab1525ce24aedd829fae49ce735422cbd721dd9","_id":"@bakedoatmeal/news-api-library@1.0.0","_nodeVersion":"18.2.0","_npmVersion":"8.9.0","dist":{"integrity":"sha512-1m1loVkSvqTry0E3dLDU4jb5qZOCnvFRL9tqiCSHJeKOYlBMS/HCWjCzRBhbeqeV0cN/LZ3cRl7TUEJy1Fc2dQ==","shasum":"5b55018b031f9d236c3af7d6893d680d745cc976","tarball":"https://registry.npmjs.org/@bakedoatmeal/news-api-library/-/news-api-library-1.0.0.tgz","fileCount":5,"unpackedSize":7759,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5hemxnbRcW4Pta2/w5liqIWZm8ooGeuMMMvc0cvn9NQIgEcW12WccNEKFddQBv0LGiBm1hewN6ylwqhhWOYL+TQM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPcILACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYbA//b1KGB8zwJqBKCvOPfwrAUg6Eyb7zgAlH42kIkTsDqgx9mU5J\r\n6hrive4kHWyKLywkjB0tiX+RJAD27yxbe2xSMHVUZxD4ForHKNWa0+/3q1GS\r\nJHawGcNkeo+29t7gdbj3FuPv6oVauC2Eoxddm87/KImkmkq/JiAJ5JAD1E+O\r\nMHXsZH8I+t2z3gS7RZxNQyQoRcxXiTB21gG2x5s/kmTp9aQEZeXJwERHE3g5\r\nCqJTpesMjIwAv8iOW0cxvGSqrvPqz9CCOisfJ+xq4Hk8MmPc9i/+0pnMT0oO\r\ncD1FJ9Up4n7miYuCus+kPqb0kJxz0rnoh0nWxILoA9JJpTrS+9q1okU8NV2C\r\ndFWoWNIe4Nh3QgC4jPHwhMORMwMY4HDXlObT23UmRZYY5Vkqk2r9KOxcDJZD\r\nqfDS1b2BQoxsUcZKgAvvxC0hzGmemU2YPpDL6Z1nhjvxGpGBf8B85F5KJJPB\r\naWhJ3SqwhdQJ2kmNkNk1feeELf2whmW+ZzUhI7aCR4CdEjPbFUxPBWurrr/E\r\nrwnLqeIQFBLzdbB9MoQ8fcNmW7hVPSYml2jQZzaRc3GgjIXe7oglFPswXxeN\r\nzUo0GWk7/g12/DFWK89g7/6sycmXUflvcJu8450j+JG8glO+YhP2nLjYT4Uq\r\nIryuo0Rp3dUQSIaweWCQcdjGK+BK/vD7a/s=\r\n=bYdj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bakedoatmeal","email":"jane.anqi.cui@gmail.com"},"directories":{},"maintainers":[{"name":"bakedoatmeal","email":"jane.anqi.cui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/news-api-library_1.0.0_1664991755722_0.1146010391175889"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-05T17:42:35.647Z","1.0.0":"2022-10-05T17:42:35.892Z","modified":"2022-10-05T17:42:36.020Z"},"maintainers":[{"name":"bakedoatmeal","email":"jane.anqi.cui@gmail.com"}],"description":"This news API library allows users to quickly get results from multiple different news APIs (NYT, Guardian, News API) in a standardized format.","license":"ISC","readme":"# News API Library\n\nThis news API library allows users to quickly get results from multiple different news APIs (NYT, Guardian, News API) in a standardized format. \n\n## function getNews(apiKey, source)\n\nTakes an apiKey object and a source string (’nyt’, ‘guardian’ or ‘’ for news API)\n\nReturns a promise with the following data: \n\nsnippet: the abstract or snippet of an article\n\ntitle: the article title\n\nurl: the link to the article on the original news site\n\nimage_url: a url to the preview image for the article \n\nAlternatively, users can search use functions for each specific news API: \n\n## function getGuardian(apiKey)\n\nTakes the Guardian API key as a string and returns a promise with the data formatted as described in the getNews() function.\n\n## function getNYT(apiKey)\n\nTakes the NYT API key as a string and returns a promise with the data formatted as described in the getNews() function.  \n\n## function getNewsAPI(apiKey)\n\nTakes the NewsAPI api key as a string and returns a promise with the data formatted as described in the getNews() function.","readmeFilename":"README.md"}