7.0.5 • Published 6 months ago

@zthun/helpful-brands v7.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months 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();
7.0.5

6 months ago

7.0.0

6 months ago

7.0.4

6 months ago

7.0.2

6 months ago

7.0.1

6 months ago

6.7.0

7 months ago

6.6.0

8 months ago

6.5.2

8 months ago

6.4.0

9 months ago

6.1.0

10 months ago

6.3.0

10 months ago

6.0.0

11 months ago

5.0.3

1 year ago

5.0.2

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

4.1.1

1 year ago

4.0.0

1 year ago

3.16.1

1 year ago

3.15.0

1 year ago

3.12.2

1 year ago

3.9.0

1 year ago

3.8.0

1 year ago

3.5.0

1 year ago

3.2.0

2 years ago

0.21.0

2 years ago

0.20.1

2 years ago

0.20.0

2 years ago

2.3.0

2 years ago

2.2.1

2 years ago

0.19.0

2 years ago

2.2.0

2 years ago

2.4.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

0.18.0

2 years ago

0.17.1

2 years ago

3.0.0

2 years ago

0.21.5

2 years ago

0.21.4

2 years ago

0.21.3

2 years ago

0.21.2

2 years ago

0.21.1

2 years ago

0.17.0

2 years ago

0.16.2

2 years ago

0.16.1

2 years ago

0.16.0

2 years ago

0.15.1

2 years ago

0.15.0

2 years ago

0.14.2

2 years ago

0.14.1

2 years ago

0.14.0

2 years ago

0.13.0

2 years ago

0.12.0

2 years ago

0.11.1

2 years ago

0.11.0

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.8.2

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago