🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

css-angles

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-angles

A representation and unit conversion tool for CSS angles

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

This is a tiny library able to hyper-efficiently convert CSS angles to and from different units, as described here.

This library was auto-generated using QuickConvert.

Supported Units

  • deg
  • turn
  • grad
  • rad

Example

const a = new Angle()
a.deg = 180

const b = new Angle('1turn')
b.deg // 360
b.turn = 2
b.deg += 20
b.deg // 740

const c = new Angle(90, 'deg')
c.add(b)
const d = Angle.sub(c, a)

Reference

For a full reference, see the documentation of the quickconvert-project.

Keywords

angle

FAQs

Package last updated on 14 Jan 2017

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