Socket
Book a DemoInstallSign in
Socket

@universalstandard/bp-scale

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@universalstandard/bp-scale

When given an object with named breakpoints, and min/max px values, it returns an `em` scale matching those breakpoints.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

@universalstandard/bp-scale

When given an object with named breakpoints, and min/max px values, it returns an em scale matching those breakpoints.

yarn add @universalstandard/bp-scale

import bpScale from '@universalstandard/bp-scale'

bpScale(10, 20, {
  d: '0px',
  s: '400px',
  m: '800px',
  l: '1200px'
})
// {
//   d: '1em',
//   s: '1.3333333333333335em',
//   m: '1.666666666666667em',
//   l: '2em'
// }

FAQs

Package last updated on 26 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts