# bootstrap-size-display

> Development utility to see current bootstrap size in the browser

Latest version **1.0.6** (published 2018-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install bootstrap-size-display
pnpm add bootstrap-size-display
yarn add bootstrap-size-display
bun add bootstrap-size-display
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2018-01-29 |
| First published | 2018-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Axel Yung |
| Maintainers | axelyung |
| Keywords | bootstrap, dev, development, tool, utility |

## Links

- npm: https://www.npmjs.com/package/bootstrap-size-display
- Repository: https://github.com/axelyung/bootstrap-size-display
- npm.io page: https://npm.io/package/bootstrap-size-display

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2018-01-29
- 1.0.5 — 2018-01-27
- 1.0.4 — 2018-01-26
- 1.0.3 — 2018-01-25
- 1.0.2 — 2018-01-25
- 1.0.1 — 2018-01-25
- 1.0.0 — 2018-01-25

## README

# Bootstrap Size Display

A simple development utility for displaying the current [Bootstrap](https://getbootstrap.com/) class in the browser. Compatible from `v3.0.0`.

![bootstrap-size-display example](./example_screenshot.png)

## Install

Install it as a local dependency:
```bash
$ npm i --save-dev bootstrap-size-display

$ yarn add -D bootstrap-size-display
```
Or use the `unpkg` cdn:
```html
<script src="https://unpkg.com/bootstrap-size-display/dist/bsd.min.js"></script>
```



## Setup
Call `bsd` to add display on page load:
```html
    ...
    <script src="https://unpkg.com/bootstrap-size-display/dist/bsd.min.js"></script>
</head>
<body>
    ...    
    <script>
        bsd()
    </script>
    ...
``` 
Importing the module is only necessary when used as a local dependency.
```javascript
// CommonJS
var bsd = require('bootstrap-size-display');

// ES6 modules
import bsd from 'bootstrap-size-display';


bsd();
```

## Overriding default styles
Default styles are: 
```css
#bootstrap-size-display {
    position: fixed;
    font-size: 2rem;
    z-index: 1000000;
    bottom: .5rem;
    right: .5rem;
}
```
To override default styles there are two options:

1) Initiate with a javascript object to set inline style:
```javascript
bsd({
    fontSize: '20px',
    top: '5px', 
    left: '10px',
    color: 'purple';
});
```
2) Override styling in custom `css` (selector `#bootstrap-size-display`) using the `.override` class:
```css
#bootstrap-size-display.override {
    fontSize: 20px;
    top: 5px; 
    left: 10px;
    color: purple;
}
```
NOTE: Javascript initiation takes precedence over `css` rules.

---
_Source: https://npm.io/package/bootstrap-size-display · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
