<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I use third party npm packages in Splunk app? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-third-party-npm-packages-in-Splunk-app/m-p/406077#M68549</link>
    <description>&lt;P&gt;I don't think it is the solution. The library I am going to use is a npm package. In that article, it has not mentioned anything about this kind libray.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jan 2019 07:54:15 GMT</pubDate>
    <dc:creator>mohsenvafa</dc:creator>
    <dc:date>2019-01-18T07:54:15Z</dc:date>
    <item>
      <title>How can I use third party npm packages in Splunk app?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-third-party-npm-packages-in-Splunk-app/m-p/406074#M68546</link>
      <description>&lt;P&gt;I am creating an app using Splunk Web splunk app. I need to install a third party library from npm package  manager by npm install command. &lt;BR /&gt;
Where and how I can install the package?&lt;/P&gt;

&lt;P&gt;To be specific, I want to install puppeteer package and use it in my js file.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.npmjs.com/package/puppeteer"&gt;https://www.npmjs.com/package/puppeteer&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;here is my code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;const puppeteer = require('puppeteer');

(async () =&amp;gt; {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('https://example.com');

  // Get the "viewport" of the page, as reported by the page.
  const dimensions = await page.evaluate(() =&amp;gt; {
    return {
      width: document.documentElement.clientWidth,
      height: document.documentElement.clientHeight,
      deviceScaleFactor: window.devicePixelRatio
    };
  });

  console.log('Dimensions:', dimensions);

  await browser.close();
})();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jan 2019 23:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-third-party-npm-packages-in-Splunk-app/m-p/406074#M68546</guid>
      <dc:creator>mohsenvafa</dc:creator>
      <dc:date>2019-01-15T23:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use third party npm packages in Splunk app?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-third-party-npm-packages-in-Splunk-app/m-p/406075#M68547</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;could this be what you are looking for?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Module/Include3rd-partylibraries"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Module/Include3rd-partylibraries&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 11:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-third-party-npm-packages-in-Splunk-app/m-p/406075#M68547</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-16T11:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use third party npm packages in Splunk app?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-third-party-npm-packages-in-Splunk-app/m-p/406076#M68548</link>
      <description>&lt;P&gt;If it was helpfull please accept the answer, thank you&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 06:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-third-party-npm-packages-in-Splunk-app/m-p/406076#M68548</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-17T06:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use third party npm packages in Splunk app?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-third-party-npm-packages-in-Splunk-app/m-p/406077#M68549</link>
      <description>&lt;P&gt;I don't think it is the solution. The library I am going to use is a npm package. In that article, it has not mentioned anything about this kind libray.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 07:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-third-party-npm-packages-in-Splunk-app/m-p/406077#M68549</guid>
      <dc:creator>mohsenvafa</dc:creator>
      <dc:date>2019-01-18T07:54:15Z</dc:date>
    </item>
  </channel>
</rss>

