open-index/open-npm huggingface dataset:
npm package: @reflar/create-flarum-extension
Description: A Flarum extension generator by ReFlar
Author: David Sevilla Martín
Latest version: 1.4.3
Deprecated: Use @friendsofflarum/create-flarum-extension instead

# Create Flarum Extension by ReFlar

[![npm version](https://img.shields.io/npm/v/@reflar/create-flarum-extension.svg)](https://www.npmjs.com/package/@reflar/create-flarum-extension) ![node](https://img.shields.io/node/v/@reflar/create-flarum-extension.svg)
![npm downloads](https://img.shields.io/npm/dt/@reflar/create-flarum-extension.svg)

Create a Flarum extension from a boilerplate in minutes!

[![asciicast](https://asciinema.org/a/179886.png)](https://asciinema.org/a/179886)

## Quick Overview

Using `npx` (npx comes with npm 5.2+ and higher):
```sh
npx @reflar/create-flarum-extension [dir]
```

Normally:
```sh
npm install -g @reflar/create-flarum-extension
create-flarum-extension [dir]
```


## Creating an Extension


**You’ll need to have Node >= 6.4.0 on your local development machine.** You can use [n](https://www.npmjs.com/package/n) to interactively manage your node versions.

To create a new app, run a single command:

```
npx @reflar/create-flarum-extension my-extension
```
*([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [quick overview for older npm versions](#quick-overview))*

It will create a directory called `my-extension` inside the current folder.
Inside that directory, it will generate the initial project structure:

```
my-extension
├── .gitignore
├── bootstrap.php
├── composer.json
├── LICENSE.md
├── README.md
├── js
│  ├── admin.js
│  ├── forum.js
│  ├── package.json
│  ├── src
│  │  ├── admin
│  │  │  └── index.js
│  │  └── forum
│  │     └── index.js
│  └── webpack.config.js
└── resources
   ├── less
   │  ├── admin.less
   │  └── forum.less
   └── locale
      └── en.yml
```

## Flarum Resources

- [Unofficial Flarum API Docs](https://discuss.flarum.org/d/4421-flarum-php-api-docs) - @datitisev
- [Extension development - first read](https://discuss.flarum.org/d/1662-extension-developer-first-read) - @luceos
- [Extension development - using composer](https://discuss.flarum.org/d/1608-extension-development-using-composer-repositories-path) - @luceos
- [Extension development - different workflows](https://discuss.flarum.org/d/6320-extension-developers-show-us-your-workflow)
- [Extension development - namespace tips](https://discuss.flarum.org/d/9625-flarum-extension-namespacing-tips)
npm package: @reflaunt-dev/lib
Description: Reflaunt common helpers
Author: Reflaunt
Latest version: 0.8.0

# @reflaunt-dev/lib

> Reflaunt common helpers.

[![GitHub followers](https://img.shields.io/github/followers/reflaunt-dev.svg?style=social&label=Follow&maxAge=2592000)](https://github.com/reflaunt-dev?tab=followers)
[![GitHub stars](https://img.shields.io/github/stars/reflaunt-dev/lib.svg?style=social&label=Star&maxAge=2592000)](https://github.com/reflaunt-dev/lib/stargazers/)

<p>
  <img alt="GitHub language count" src="https://img.shields.io/github/languages/count/reflaunt-dev/lib?style=for-the-badge&logo=appveyor">

  <img alt="Repository size" src="https://img.shields.io/github/repo-size/reflaunt-dev/lib?style=for-the-badge&logo=appveyor">

  <img alt="License" src="https://img.shields.io/badge/license-MIT-brightgreen?style=for-the-badge&logo=appveyor">

  <img alt="Commitizen" src="https://img.shields.io/badge/commitizen-friendly-brightgreen?style=for-the-badge&logo=appveyor">
</p>

<img src=".github/logo.png" width="200px" align="right" hspace="30px" vspace="100px">

## Links

> For project documentation [click here](https://github.com/reflaunt-dev/lib/tree/develop/docs).

## Contributing

> If you want to contribute to this project, first read the [CONTRIBUTING.MD](https://github.com/reflaunt-dev/lib/blob/develop/CONTRIBUTING.md) file. It will be a pleasure to receive your help.

---

<p align='center'>
  With 💜 by <a href='https://github.com/reflaunt-dev'>Reflaunt community</a>
</p>

<p align='center'>
  <a href='https://github.com/reflaunt-dev/lib/graphs/contributors'>
    <img src='https://contrib.rocks/image?repo=reflaunt-dev/lib'/>
  </a>
</p>
npm package: @reflaunt/reflaunt-sdk
Description: Reflaunt SDK
Author: Hieupv
Latest version: 1.0.2

- [Reflaunt SDK](#reflaunt-sdk)
  - [Installation](#installation)
  - [Usage](#usage)
    - [Category](#category)
    - [Product](#product)

# Reflaunt SDK

## Installation

NPM

```
npm install @reflaunt/reflaunt-sdk
```

Yarn

```
yarn add @reflaunt/reflaunt-sdk
```

## Usage

Create new instance of Reflaunt

```javascript
import Reflaunt from '@reflaunt/nodejs-sdk';

const reflaunt = new Reflaunt(YOUR_CLIENT_ID, YOUR_CLIENT_SECRET);
```

### Category

Retreive all category

```javascript
const categories = await reflaunt.category.all();
```

Get category information

```javascript
const category = await reflaunt.category.show(CATEGORY_ID);
```

### Product

Retreive list of product

```javascript
const products = await reflaunt.product.get(PARAMS);
```

> Available params
>
> - page `int`
> - per_page `int`

Example

```javascript
const product = await reflaunt.product.get({ page: 1, per_page: 20 });
```

Get product information

```javascript
const product = await reflaunt.product.show(PRODUCT_ID);
```

Create new product

```javascript
const product = await reflaunt.product.create(PRODUCT_ATTRIBUTES);
```

Example

```javascript
const product = await instance.product.create({
  name: 'PRODUCT_NAME',
  description: 'PRODUCT_DESCRIPTION',
  images: ['PRODUCT_IMAGE_URL'],
  original_price: 'ORIGINAL_PRICE',
  website: 'RETAILER_WEBISTE',
  price: 'PRICE',
  customer_email: 'CUSTOMER_EMAIL',
  category_id: 'CATEGORY_ID'
});
```

Delete a product

```javascript
const product = await reflaunt.product.delete(PRODUCT_ID);
```