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

is-positive

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-positive - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

7

index.js
'use strict';
module.exports = function (n) {
if (typeof n !== 'number') {
throw new TypeError('Expected a number');
}
return n > 0;
return typeof n === 'number' && n > 0;
};

7

package.json
{
"name": "is-positive",
"version": "2.0.0",
"description": "Test if a number is positive",
"version": "3.0.0",
"description": "Check if something is a positive number",
"license": "MIT",

@@ -24,3 +24,4 @@ "repository": "kevva/is-positive",

"positive",
"test"
"test",
"check"
],

@@ -27,0 +28,0 @@ "devDependencies": {

# is-positive [![Build Status](https://travis-ci.org/kevva/is-positive.svg?branch=master)](https://travis-ci.org/kevva/is-positive)
> Test if a number is positive
> Check if something is a positive number

@@ -26,2 +26,5 @@

//=> false
isPositive('1');
//=> false
```

@@ -28,0 +31,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc