New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rayish

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rayish

Line that goes for a while in one direction and then stops

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

rayish

Line that goes for a while in one direction and then stops.

Usage

Create from start point and end point

var Rayish = require('rayish');

var start = {x: 0, y: 0};
var end = {x: 20, y: 15};

var r = new Rayish(start, end);

r.start // (0, 0)
r.end   // (20, 15)

Create from start point, some other point and length

var Rayish = require('rayish');

var start = {x: 0, y: 0};
var otherPointOnRay = {x: 20, y: 15};
var length = 5;

var r = new Rayish(start, otherPointOnRay, length);

r.start // (0, 0)
r.end   // (4, 3)

Install

npm install rayish

License

MIT

Keywords

ray

FAQs

Package last updated on 03 Nov 2014

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