open-index/open-npm huggingface dataset:
npm package: @mediapop/ember-humanize
Description: The default blueprint for ember-cli addons.
Latest version: 0.3.4

ember-humanize
==============================================================================
*This ember addon is maintained by [Media Pop](https://www.mediapop.co), a software consultancy. Hire us to solve your web application challenges.*
[![Build Status](https://travis-ci.org/mediapop/ember-humanize.svg?branch=master)](https://travis-ci.org/mediapop/ember-humanize)


An ember helper wrapper for [humanize](https://github.com/HubSpot/humanize)'s most useful functions that are unavailable in vanilla JS and native Ember.js

Installation
------------------------------------------------------------------------------

```
ember install @mediapop/ember-humanize
```


Usage
------------------------------------------------------------------------------

Use in any template.  You can also customise the display using the optional named parameters.

**humanize-compact-number**

Shortens the number to well known abbreviations.
```hbs
{{humanize-compact-number 123456789}}
//123M

{{humanize-compact-number 123456789 decimals=2}}
//123.46M
```

**humanize-number**

similar to JS's `toLocaleString()` but with custom control over thousands and decimal seperators
```hbs
{{humanize-number 10000000}}
//10,000,000

{{humanize-number 10000000 precision=2 thousand=' ' decimal=','}}
//10 000 000,000
```

**humanize-ordinal-number**

expresses numbers in their ordinal form
```hbs
{{humanize-ordinal-number 1332}}
//1332nd
```

Contributing
------------------------------------------------------------------------------

### Installation

* `git clone https://github.com/mediapop/ember-humanize`
* `cd ember-humanize`
* `npm install`

### Linting

* `npm run lint:hbs`
* `npm run lint:js`
* `npm run lint:js -- --fix`

### Running tests

* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions

### Running the dummy application

* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

License
------------------------------------------------------------------------------

This project is licensed under the [MIT License](LICENSE.md).
npm package: @mediapop/ember-viewport
Description: Accurate vh units on mobile.
Author: Media Pop
Latest version: 0.1.5

# ember-viewport

*This ember addon is maintained by [Media Pop](https://www.mediapop.co), a software consultancy. Hire us to solve your web application challenges.*

[![Build Status](https://travis-ci.org/mediapop/ember-viewport.svg?branch=master)](https://travis-ci.org/mediapop/ember-viewport)
[![Ember Observer Score](https://emberobserver.com/badges/-mediapop-ember-viewport.svg)](https://emberobserver.com/addons/@mediapop/ember-viewport)
<a href="https://codeclimate.com/github/mediapop/ember-viewport/maintainability"><img src="https://api.codeclimate.com/v1/badges/afe2d4d60342ea89b4fd/maintainability" /></a>
[![dependencies](https://david-dm.org/mediapop/ember-viewport/status.svg)](https://david-dm.org/poetic/ember-cli-github-pages)
[![devDependencies](https://david-dm.org/mediapop/ember-viewport/dev-status.svg)](https://david-dm.org/poetic/ember-cli-github-pages?type=dev)

Provides a `viewport` service and inserts accurate faux-viewport units into CSS variable `--vh`. View the [demo app](https://mediapop.github.io/ember-viewport/) on mobile.

```css
/* Before */
.full-height {
  height: 100vh; /* Inaccurate on mobile */
}

/* After */
.full-height {
  height: calc(--vh * 100);
}
```

It can also be used as a service:

```js
export default Component.create({
  viewport: service(),
  someProperty: computed('viewport.height', function(){
    return this.viewport.height / 2;
  })
});
```

## Installation

* `ember install @mediapop/ember-viewport`

## Running

* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).

## Running Tests

* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).