5.0.1 • Published 21 days ago

@zthun/helpful-brands v5.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

Helpful Brands

This package contains an object structure and a builder for different brands. The current list of supported brands are a subset of those found in Font Awesome's Brand Family.

This package is mostly used for demos and testing of UI components.

Installation

# NPM
npm install @zthun/helpful-brands --save-dev
# Yarn
yarn add @zthun/helpful-brands --dev

Usage

Usage of this library mostly revolves around the brand interface and the builder that accompanies it.

import { IZBrand, ZBrandBuilder } from '@zthun/helpful-brands';

// Constructs a new brand with a given id and name.
const brand: IZBrand = new ZBrandBuilder()
  .id('facebook')
  .name('Facebook')
  .founded(2004)
  .owner('Meta Platforms')
  .build();

// Some brands are automatically supported out of box.
const facebook = new ZBrandBuilder().facebook().build();
const x = new ZBrandBuilder().twitter().build();
const instagram = new ZBrandBuilder().instagram().build();

If you need a list of all supported brands in an array, you can retrieve one by just importing the ZBrands array.

import { ZBrands } from '@zthun/helpful-brands';

// Contains all brands that are supported out of the box by the ZBrandBuilder()
// The actual array ZBrands, is frozen and immutable so you won't be able
// to change anything in it.  If you need a mutable array, you must slice the
// ZBrands array.
const brands = ZBrands.slice();
5.0.1

21 days ago

5.0.0

1 month ago

4.1.1

1 month ago

4.0.0

2 months ago

3.16.1

2 months ago

3.15.0

2 months ago

3.12.2

2 months ago

3.9.0

3 months ago

3.8.0

3 months ago

3.5.0

3 months ago

3.2.0

4 months ago

0.21.0

9 months ago

0.20.1

10 months ago

0.20.0

10 months ago

2.3.0

8 months ago

2.2.1

9 months ago

0.19.0

10 months ago

2.2.0

9 months ago

2.4.0

6 months ago

2.1.0

9 months ago

2.0.0

9 months ago

0.18.0

10 months ago

0.17.1

10 months ago

3.0.0

6 months ago

0.21.5

9 months ago

0.21.4

9 months ago

0.21.3

9 months ago

0.21.2

9 months ago

0.21.1

9 months ago

0.17.0

11 months ago

0.16.2

11 months ago

0.16.1

11 months ago

0.16.0

11 months ago

0.15.1

11 months ago

0.15.0

11 months ago

0.14.2

11 months ago

0.14.1

11 months ago

0.14.0

11 months ago

0.13.0

11 months ago

0.12.0

11 months ago

0.11.1

11 months ago

0.11.0

11 months ago

0.10.0

11 months ago

0.9.0

12 months ago

0.8.2

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago