1.0.4 • Published 7 years ago

hipster-product-creator v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Hipster Product Creator

by katreinhart

Easily generate a JSON object of random Hipster Ipsum product items for use in your e-commerce projects. Uses the Hipster Ipsum API and Unsplash.it API.

Developed as a side project alongside Dynamic Product Filters as a means of quickly generating test data.

Installation

npm install hipster-product-creator

Or fork and clone this repository.

Generating products

const hipsterProductCreator = require('hipster-product-creator')
hipsterProductCreator(n [, filename])

Outputs a JSON object of random products to a new file, in your local directory. Takes two arguments (one optional): n: number of products to create. filename: (optional) what it says on the tin. Defaults to products.json.

Product Options

ADVANCED STUFF: You can add your own options for products by editing the arrays in the PRODUCT OPTIONS section. Add categories, comment categories in or out. If you're editing a lot of this stuff, you should probably just fork & clone the repo instead of npm installing it.

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago