4.0.1 • Published 5 years ago

boobreaks v4.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Boobreaks 📏

Demo

A simple and small (881 bytes) utility to make Bootstraps breakpoints available in your JavaScript files.

Tested with Bootstrap version: 4.3.1

Installation

npm install boobreaks

How to use

UMD

Load the library:

<!-- <head> -->
<link rel="stylesheet" href="./path/to/boobreaks.umd.css" />
<script defer src="./path/to/boobreaks.umd.js"></script>
<!-- </head> -->

Use it:

console.log(`Breakpoint is at`, Boobreaks.current(), Boobreaks.width())

CommonJS

import 'boobreaks/dist/boobreaks.css'
import { current, width } from 'boobreaks'

console.log(`Breakpoint is at`, current(), width())

Available functions

FunctionParamsReturnDescription
current()nonestringCurrent breakpoint alias.
width()nonenumberCurrent screen width by alias.
is()expressionstringIf the current screen matches the expression, e.g.: >=sm
4.0.1

5 years ago

4.0.0

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago