New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

coin-toss

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

coin-toss - npm Package Compare versions

Comparing version

to
0.2.0

10

lib/index.js

@@ -13,2 +13,12 @@

/**
* Returns true if tails, false if heads.
*
* @return {boolean}
*/
exports.isTails = function() {
return Math.random() > 0.5;
};
/**
* Returns 'heads' or 'tails'.

@@ -15,0 +25,0 @@ *

2

package.json
{
"name": "coin-toss",
"version": "0.1.0",
"version": "0.2.0",
"description": "Toss a coin.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -16,5 +16,7 @@ # coin-toss

console.log(coin.isHeads); // `true` or `false`
console.log(coin.isHeads()); // `true` or `false`
console.log(coin.toss); // `'heads'` or `'tails'`
console.log(coin.isTails()); // `true` or `false`
console.log(coin.toss()); // `'heads'` or `'tails'`
```

@@ -21,0 +23,0 @@