Skip to content

Latest commit

 

History

History
79 lines (41 loc) · 1.3 KB

README.md

File metadata and controls

79 lines (41 loc) · 1.3 KB

fetch-stihl-products

Current npm package version Build Status

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