<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Suresh Vytla</title>
    <description>The latest articles on DEV Community by Suresh Vytla (@sureshvytla).</description>
    <link>https://dev.to/sureshvytla</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F905218%2F053fbe3b-4947-4629-9743-3cebd0dd914b.png</url>
      <title>DEV Community: Suresh Vytla</title>
      <link>https://dev.to/sureshvytla</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sureshvytla"/>
    <language>en</language>
    <item>
      <title>HTML to PDF using Puppeteer</title>
      <dc:creator>Suresh Vytla</dc:creator>
      <pubDate>Fri, 13 Oct 2023 07:47:29 +0000</pubDate>
      <link>https://dev.to/sureshvytla/html-to-pdf-using-puppeteer-2kld</link>
      <guid>https://dev.to/sureshvytla/html-to-pdf-using-puppeteer-2kld</guid>
      <description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;We are looking in to converting html page into PDF, found &lt;code&gt;Puppeteer&lt;/code&gt; node library and works with headless. Is it possible to create javascript library using &lt;code&gt;node polyfills&lt;/code&gt;? &lt;/p&gt;

&lt;p&gt;Looking into create javascript library using vitejs, so that can be used any web apps, having the following error.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[vite:load-fallback] Could not load ~/dev/node_modules/.pnpm/node-stdlib-browser@1.2.0/node_modules/node-stdlib-browser/esm/mock/empty.js/promises (imported by node_modules/.pnpm/puppeteer-core@21.3.8/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js): ENOTDIR: not a directory, open '~/dev/node_modules/.pnpm/node-stdlib-browser@1.2.0/node_modules/node-stdlib-browser/esm/mock/empty.js/promises'
error during build:
Error: Could not load ~/dev/node_modules/.pnpm/node-stdlib-browser@1.2.0/node_modules/node-stdlib-browser/esm/mock/empty.js/promises (imported by node_modules/.pnpm/puppeteer-core@21.3.8/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js): ENOTDIR: not a directory, open '~/dev/node_modules/.pnpm/node-stdlib-browser@1.2.0/node_modules/node-stdlib-browser/esm/mock/empty.js/promises'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;package.json&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;...
"dependencies": {
    "buffer": "^6.0.3",
    "os": "^0.1.2",
    "path": "^0.12.7",
    "puppeteer": "^21.3.8",
    "vue": "^3.3.4",
    "chromedriver": "^118.0.0"
  },
  "devDependencies": {
    "@types/jest": "^29.5.5",
    "@typescript-eslint/eslint-plugin": "^6.7.5",
    "@typescript-eslint/parser": "^6.7.5",
    "@vitejs/plugin-vue": "^4.4.0",
    "@vue/eslint-config-typescript": "^12.0.0",
    "eslint": "^8.51.0",
    "eslint-config-prettier": "^9.0.0",
    "eslint-plugin-vue": "^9.17.0",
    "husky": "^8.0.3",
    "jest": "^29.7.0",
    "lint-staged": "^14.0.1",
    "node-stdlib-browser": "^1.2.0",
    "path": "^0.12.7",
    "prettier": "3.0.3",
    "rimraf": "^5.0.5",
    "rollup": "^4.0.2",
    "rollup-plugin-typescript2": "^0.36.0",
    "stylelint": "^15.10.3",
    "stylelint-config-recommended": "^13.0.0",
    "stylelint-config-standard": "^34.0.0",
    "typescript": "^4.9.5",
    "vite": "^4.4.11",
    "vite-plugin-dts": "^3.6.0",
    "vite-plugin-eslint": "^1.8.1",
    "vite-plugin-node-polyfills": "^0.15.0",
    "vitest": "^0.34.6",
    "vue-tsc": "^1.8.19"
  },
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>How to read external post request in vuejs?</title>
      <dc:creator>Suresh Vytla</dc:creator>
      <pubDate>Tue, 28 Feb 2023 18:32:59 +0000</pubDate>
      <link>https://dev.to/sureshvytla/how-to-read-external-post-request-in-vuejs-3nmb</link>
      <guid>https://dev.to/sureshvytla/how-to-read-external-post-request-in-vuejs-3nmb</guid>
      <description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;I've use case to implement identity-broker for the web-clients to authorize and obtain access token. This requires to read external POST request in vuejs and return JSON response. &lt;/p&gt;

&lt;p&gt;Example&lt;/p&gt;

&lt;p&gt;Request&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Endpoint - /oauth/token&lt;br&gt;
Method - POST&lt;br&gt;
Form Data&lt;br&gt;
grant_type=authorization_code&lt;br&gt;
&amp;amp;code=xxxxx&lt;br&gt;
&amp;amp;client_id=xxxx&lt;br&gt;
&amp;amp;redirect_uri=xxxxx&lt;br&gt;
&amp;amp;code_verifier=xxxx&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Response&lt;/p&gt;

&lt;p&gt;&lt;code&gt;{"access_token":"xxxxx","id_token":"xxxxx","refresh_token":"xxxxx","token_type":"Bearer"}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Thanks in advance. &lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>discuss</category>
      <category>education</category>
      <category>workplace</category>
    </item>
  </channel>
</rss>
