fetch-stihl-products
v2.0.5
Published
Fetches Stihl product data.
Downloads
23
Readme
fetch-stihl-products
Fetches Stihl product data.
Installing
npm install fetch-stihl-products
Usage
const fetchStihlProducts = require('fetch-stihl-products');
const data = await fetchStihlProducts();
API
fetchStihlProducts(skus, [options])
Returns an array of Stihl products and scraped data.
skus
Type: Array
SKUs to return data for.
options
Type: Object
url
Type: string
Default: https://hutsonmayfield.stihldealer.net
Stihl dealer URL to fetch from.
sitemap
Type: string
Default: sitemap.xml
Sitemap file to fetch from.
headers
Type: Object
Headers to pass when fetching.
Promise
Type: function
Default: require('bluebird')
Use a custom Promise
implementation.
encodeEntities
Type: boolean
Default: false
Encode HTML entities with he
.
Related
License
MIT © Hutson Inc