1.2.0 • Published 8 years ago

rangejs v1.2.0

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

rangejs Build Status Coverage Status

TypeScript library which aims to provide various Range and Interval functionalities.

installation

rangejs is available on npm. Just type npm install rangejs to fetch latest version of the library.

rangejs is an TypeScript package which means you can use its features directly in your TypeScript project. Furthermore the package also includes compiled code which means the library will also work with JavaScript code. You can check the build target in the tsconfig.json file.

usage

You can use rangejs with TypeScript as in example:

// import classes
import {Range, Interval} from 'rangejs';

// create new Range instance
var range = new Range(-1, 1);

console.log(`${range}`); // Range(-1,1)

// create new Interval instance
var interval = new Interval(-1, 1);

console.log(`${interval}`); // [-1,1]

Or with JavaScript in similar way.

license

The MIT License (MIT)

Copyright (c) 2016 Tomasz Łaziuk tlaziuk@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

9 years ago