amazon-url-builder
v0.2.0
Published
Builds parametrized Amazon URIs
Downloads
10
Maintainers
Readme
Amazon-url-builder
This package aims to provide an easy way to generate Amazon Urls for a range of page types.
Installation
npm i amazon-url-builder
Usage
5 methods are available to generate Urls. Each one for a specific page type:
buildUrlBestSellerByNodeSlug(slug)
generates an Url for a Node bestsellersbuildUrlNodeById(id)
generates an Url for a NodebuildUrlNodeById(id)
generates an Url for a NodebuildUrlSearchByTerm(searchTerm)
generates an Url for a search pagebuildUrlSearchByTermAndCategory(searchTerm, i)
generates an Url for a search page within a specific category identified by itsi
GET parameter
Development
Tests and examples are not included in the Npm package to keep it lightweight. Use the repository for development
Example
An example application is included. Run it with :
npm run dev
Contributing
Issue reports, pull requests, suggestions and comments are very welcome !
Please keep in mind that this repo use commitizen -style commit messages and follow js standard's style