1.2.1 • Published 3 years ago

degreezzy v1.2.1

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

logo

npm version npm

What is it? 🐱

It is a library with utilitarian functions for working with degrees and directions.

How to use it?

First you need to install the package from npm:

npm install --save degreezzy

After that, you need to import the package into your project:

import { getDirectionByDegrees, getDegreesByDirection } from 'degreezzy';

Now you can use this in your project, for example:

const degrees = 360; // Degrees value.

const direction = getDirectionByDegrees(degrees); // Returns a direction value: 'N';

You can also:

const direction = 'N'; // Direction value.

const degrees = getDegreesByDirection(direction); // Returns a degrees value: 360;

There are also functions for converting radians to degrees.

import { getDegreesByRadians, getRadiansByDegrees } from 'degreezzy';

Which you can use that way.

const radians = 6.283185307179586; // Radians value.
const degrees = getDegreesByRadians(radians); // Returns a degrees value: 360.

Or degrees to radians.

const degrees = 360; // Degrees value.
const radians = getRadiansByDegrees(degrees); // Returns a radians value: 6.283185307179586.

Thanks for using this library.

If you have any suggestions or improvements, we are always open to the Pull Requests. If you liked it, you can put a star on the GitHub, thanks!

1.3.2

3 years ago

1.3.1

3 years ago

1.2.1

3 years ago

1.9.8

3 years ago

2.0.0

3 years ago

1.9.1

3 years ago

1.9.7

3 years ago

1.9.6

3 years ago

1.9.5

3 years ago

1.9.4

3 years ago

1.9.3

3 years ago

1.9.2

3 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago