<commit_before># ScreenCalc

[![NPM version](https://img.shields.io/npm/v/screencalc.svg)](https://www.npmjs.org/package/screencalc) [![Total downloads](https://img.shields.io/npm/dm/screencalc.svg)](https://www.npmjs.org/package/screencalc)

ScreenCalc is a powerful JavaScript module which makes it easy to answer almost any kind of question about the properties of a display. For example:

*What is the resolution of a 16:9 screen with 1,440,000 pixels?*

```javascript
var screen = new ScreenCalc({
    ratio:      16/9,
    pixelCount: 1440000
});

var w = screen.getPixelWidth();  // 1600
var h = screen.getPixelHeight(); // 900
```

*What are the physical dimensions and ppi of a 50-inch 1080p television screen?*<commit_msg>Show Travis build status in readme<commit_after># ScreenCalc

[![NPM version](https://img.shields.io/npm/v/screencalc.svg)](https://www.npmjs.org/package/screencalc) [![Total downloads](https://img.shields.io/npm/dm/screencalc.svg)](https://www.npmjs.org/package/screencalc) [![Build Status](https://travis-ci.org/theodorejb/ScreenCalc.svg?branch=master)](https://travis-ci.org/theodorejb/ScreenCalc)

ScreenCalc is a powerful JavaScript module which makes it easy to answer almost any kind of question about the properties of a display. For example:

*What is the resolution of a 16:9 screen with 1,440,000 pixels?*

```javascript
var screen = new ScreenCalc({
    ratio:      16/9,
    pixelCount: 1440000
});

var w = screen.getPixelWidth();  // 1600
var h = screen.getPixelHeight(); // 900
```

*What are the physical dimensions and ppi of a 50-inch 1080p television screen?*
{'fraction_non_alphanumeric': 0.13531967721911856, 'fraction_numerical': 0.040968342644320296, 'mean_word_length': 4.5395189003436425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5946688', 'n_tokens_mistral': 604, 'n_tokens_neox': 497, 'n_words': 150}