2.0.5 • Published 6 years ago

fetch-stihl-products v2.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

fetch-stihl-products

Current npm package version

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

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago