hutsoninc / fetch-stihl-products

Fetches Stihl product data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Fetches Stihl product data

License:MIT License


Languages

Language:JavaScript 100.0%