1.0.3 • Published 8 years ago

static-tag-cloud v1.0.3

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

Static Tag Cloud

A deterministic tag cloud generator which always gives the same output upon the same input.

Install

$ npm install --save static-tag-cloud

Usage

import tagCloud from 'static-tag-cloud'

tagCloud([
  { id: 'apple', count: 1 },
  { id: 'boy', count: 2 },
  { id: 'cat', count: 4 },
  { id: 'dog', count: 1 }
])

/*
[
  { bucket: 2, id: 'apple', count: 1 },
  { bucket: 2, id: 'dog', count: 1 },
  { bucket: 2, id: 'boy', count: 2 },
  { bucket: 4, id: 'cat', count: 4 }
]
*/
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago