2.3.0 • Published 3 years ago

@karibash/pixel-units v2.3.0

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

pixel-units

Github Twitter

🔧 Features

Absolute length units

  • px
  • cm
  • mm
  • Q
  • in
  • pc
  • pt

Relative length units

  • rem
  • em
  • vw
  • vh
  • vmin
  • vmax

Multiplication units

  • percent
  • magnification

👏 Getting Started

The basic usage is as follows:

import { Unit, convertUnits } from '@karibash/pixel-units';

const pixel: Unit<'px'> = '32px';
const rem = convertUnits(pixel, 'rem');

console.log(rem);
// -> 2rem

🚀 Installation

$ npm install @karibash/pixel-units

🤝 Contributing

Contributions, issues and feature requests are welcome.

Feel free to check issues page if you want to contribute.

📝 License

Copyright © 2020 @Karibash.

This project is MIT licensed.

2.3.0

3 years ago

2.2.0

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago