{"_id":"@arindam1729/mediumblog","_rev":"1-69f3f4410e62c86a3d833eda64eb4f8c","name":"@arindam1729/mediumblog","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@arindam1729/mediumblog","version":"1.0.0","description":"Package to publish Blogs to Medium","main":"index.js","scripts":{"start":"node index.js"},"author":{"name":"Arindam Majumder"},"license":"MIT","dependencies":{"axios":"^1.6.8"},"repository":{"type":"git","url":"git+https://github.com/Arindam200/mediumblog.git"},"keywords":["medium-blog","medium","mediumblog","blog","medium api","medium article","medium-article","medium-blog","blog article","blog post","blog api","blog article api","blog post api","medium blog api","medium blog article","recent articles","article api"],"_id":"@arindam1729/mediumblog@1.0.0","gitHead":"7d18f1c0c295f5c12afedd434695e00388066eac","bugs":{"url":"https://github.com/Arindam200/mediumblog/issues"},"homepage":"https://github.com/Arindam200/mediumblog#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-pHaLvq0ID28LEbkpqklyIyLjdKq3JD8AGLvie0uuXO0DLiShoN+i4dFemPRGUG950CPSIeu1OCmBdrKoIb0HCQ==","shasum":"1aa6be0e84859f16662843f5070bae31594d284b","tarball":"https://registry.npmjs.org/@arindam1729/mediumblog/-/mediumblog-1.0.0.tgz","fileCount":3,"unpackedSize":3578,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4mrf0c2JOwskusw4aMa8vA74v+oqf2ANK+145hShpwAiEA1tOiotflLpvMh66CjElUSMjULaDpAvg2TPGfH9U21AE="}]},"_npmUser":{"name":"arindam1729","email":"arindammajumder2020@gmail.com"},"directories":{},"maintainers":[{"name":"arindam1729","email":"arindammajumder2020@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mediumblog_1.0.0_1714940117087_0.02640336616831318"},"_hasShrinkwrap":false},"1.0.1":{"name":"@arindam1729/mediumblog","version":"1.0.1","description":"Package to publish Blogs to Medium","main":"index.js","scripts":{"start":"node index.js"},"author":{"name":"Arindam Majumder"},"license":"MIT","dependencies":{"axios":"^1.6.8"},"repository":{"type":"git","url":"git+https://github.com/Arindam200/mediumblog.git"},"keywords":["medium-blog","medium","mediumblog","blog","medium api","medium article","medium-article","medium-blog","blog article","blog post","blog api","blog article api","blog post api","medium blog api","medium blog article","recent articles","article api"],"_id":"@arindam1729/mediumblog@1.0.1","gitHead":"b6a5799acc48b6cafa072184783d94326db8652e","bugs":{"url":"https://github.com/Arindam200/mediumblog/issues"},"homepage":"https://github.com/Arindam200/mediumblog#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-2TOsOu4IhX2mJNXWWAQeoxSjYsi0F9h5RRD/c4daludIHTjkbx7bSQPfbdkIl6vLFUjKu5+Edch4sUowMVnYoQ==","shasum":"e1880b8ddabf2d6ca584de4ba8ef39c46ed85a26","tarball":"https://registry.npmjs.org/@arindam1729/mediumblog/-/mediumblog-1.0.1.tgz","fileCount":3,"unpackedSize":3574,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJhn7/Hil6QE2i+IEsgY2ZqdVt6H7niJPNOTSya/V/MAiBe6y5qjdkASWfCykmXJyAIpdmMAL6pYVjELqSzUr5l4Q=="}]},"_npmUser":{"name":"arindam1729","email":"arindammajumder2020@gmail.com"},"directories":{},"maintainers":[{"name":"arindam1729","email":"arindammajumder2020@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mediumblog_1.0.1_1715056973418_0.020362448335587313"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-05T20:15:17.007Z","1.0.0":"2024-05-05T20:15:17.235Z","modified":"2024-05-07T04:42:53.738Z","1.0.1":"2024-05-07T04:42:53.551Z"},"maintainers":[{"name":"arindam1729","email":"arindammajumder2020@gmail.com"}],"description":"Package to publish Blogs to Medium","homepage":"https://github.com/Arindam200/mediumblog#readme","keywords":["medium-blog","medium","mediumblog","blog","medium api","medium article","medium-article","medium-blog","blog article","blog post","blog api","blog article api","blog post api","medium blog api","medium blog article","recent articles","article api"],"repository":{"type":"git","url":"git+https://github.com/Arindam200/mediumblog.git"},"author":{"name":"Arindam Majumder"},"bugs":{"url":"https://github.com/Arindam200/mediumblog/issues"},"license":"MIT","readme":"# @arindam1729/mediumblog\r\n\r\nThis npm package allows you to easily post a blog article to the Medium. It provides a function called `postBlog` that takes in an article object and an API key as parameters. The function returns a promise that resolves to the response data from the API.\r\n\r\n## Installation\r\n\r\nTo install the package, run the following command:\r\n\r\n```\r\nnpm install @arindam1729/mediumblog\r\n```\r\n\r\n## Usage\r\n\r\nFirst, import the package:\r\n\r\n```javascript\r\nconst { postBlog } = require('@arindam1729/mediumblog');\r\n```\r\n\r\nThen, use the `postBlog` function to post a blog article:\r\n\r\n```javascript\r\nconst article = {\r\n  // Specify the properties of the article object here\r\n};\r\n\r\nconst apiKey = 'YOUR_API_KEY';\r\n\r\npostBlog(article, apiKey)\r\n  .then(response => {\r\n    // Handle the response data here\r\n  })\r\n  .catch(error => {\r\n    // Handle any errors here\r\n  });\r\n```\r\n\r\nMake sure to replace `'YOUR_API_KEY'` with your actual dev.to API key.\r\n\r\n## Example\r\n\r\nHere's an example of how to use the `postBlog` function:\r\n\r\n```javascript\r\nconst article = {\r\n     title: \"Publishing Article on Medium | by Arindam\",\r\n     contentFormat: \"markdown\",\r\n     content: \"# Here's a Basic markdown.\\n***\\nHope This Helps You\",\r\n     canonicalUrl: \"https://arindam1729.hashnode.dev\",\r\n     tags: [\"Medium\", \"Blog\", \"Arindam\"],\r\n     publishStatus: \"public\"\r\n}\r\n\r\nconst apiKey = 'YOUR_API_KEY';\r\n\r\npostBlog(article, apiKey)\r\n  .then(response => {\r\n    console.log('Article posted successfully:', response);\r\n  })\r\n  .catch(error => {\r\n    console.error('Error posting article:', error);\r\n  });\r\n```\r\n\r\n## API\r\n\r\n### postBlog(article, apiKey)\r\n\r\n- `article` (Object): The article object to be posted. It should contain properties such as `title`, `body`, and `tags`.\r\n- `apiKey` (string): The API key required to access the dev.to API.\r\n\r\nReturns a promise that resolves to the response data from the API.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License.","readmeFilename":"README.md"}