Natural Preference for Minification
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

cosine

0.0.1 • Public • Published

cosine

NPM version Build Status Dependency Status Coverage Status Code Climate

install

npm install [--save/--save-dev] cosine
component install cosine

api

var cosine = require('cosine')
 
var s1 = 'Julie loves me more than Linda loves me'.split(/\s/)
var s2 = 'Jane likes me more than Julie loves me or'.split(/\s/)
 
cosine(s1, s2) // => 0.7833494518006403

license

MIT

Keywords

none

install

npm i cosine

Downloadsweekly downloads

26

version

0.0.1

license

none

last publish

collaborators

  • avatar
Report a vulnerability