https://github.com/hexlet-components/js-points
https://github.com/hexlet-components/js-points
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hexlet-components/js-points
- Owner: hexlet-components
- Created: 2016-04-25T10:54:42.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2025-07-11T20:13:00.000Z (12 months ago)
- Last Synced: 2025-10-24T21:33:58.708Z (8 months ago)
- Language: JavaScript
- Size: 2.74 MB
- Stars: 0
- Watchers: 9
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# js-points
[](https://github.com/hexlet-components/js-points/actions)
[](https://gitpod.io/#https://github.com/hexlet-components/js-points/blob/master/index.js)
## Install
```sh
npm install @hexlet/points
```
## Usage example
```javascript
import {
makePoint, getX, getY, toString, quadrant,
} from '@hexlet/points';
const point = makePoint(4, 5);
toString(point); // (4, 5)
getX(point); // 4
getY(point); // 5
quadrant(point); // 1
```
For more information, see the [Full Documentation](https://github.com/hexlet-components/js-points/tree/master/docs)
---
[](https://hexlet.io?utm_source=github&utm_medium=link&utm_campaign=js-points)
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io?utm_source=github&utm_medium=link&utm_campaign=js-points).
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).