https://github.com/mljs/zones
Utilities to deal with zones, array of object (from, to}
https://github.com/mljs/zones
Last synced: 9 months ago
JSON representation
Utilities to deal with zones, array of object (from, to}
- Host: GitHub
- URL: https://github.com/mljs/zones
- Owner: mljs
- License: mit
- Created: 2020-02-08T17:51:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-09T05:31:09.000Z (over 6 years ago)
- Last Synced: 2025-01-05T12:12:30.145Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://mljs.github.io/zones/.
- Size: 1.15 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
README
# ml-zones
[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![npm download][download-image]][download-url]
Deal with zones.
## Installation
`$ npm i ml-zones`
## Usage
```js
import Zones from 'ml-zones';
let result = Zones.normalize([
{ from: 0, to: 2 },
{ from: 1, to: 5 },
]);
// result = [{from:0, to:5}]
```
## [API Documentation](https://mljs.github.io/ml-zones/)
## License
[MIT](./LICENSE)
[npm-image]: https://img.shields.io/npm/v/ml-zones.svg
[npm-url]: https://www.npmjs.com/package/ml-zones
[ci-image]: https://github.com/mljs/ml-zones/workflows/Node.js%20CI/badge.svg?branch=master
[ci-url]: https://github.com/mljs/ml-zones/actions?query=workflow%3A%22Node.js+CI%22
[download-image]: https://img.shields.io/npm/dm/ml-zones.svg
[download-url]: https://www.npmjs.com/package/ml-zones