Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

humanize

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

humanize - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

3

humanize.js

@@ -377,4 +377,5 @@

number = Math.abs(number);
var tens = number % 100;
return sign + number + (number > 4 && number < 21 ? 'th' : {1: 'st', 2: 'nd', 3: 'rd'}[number % 10] || 'th');
return sign + number + (tens > 4 && tens < 21 ? 'th' : {1: 'st', 2: 'nd', 3: 'rd'}[number % 10] || 'th');
};

@@ -381,0 +382,0 @@

@@ -19,3 +19,3 @@ {

"main": "humanize.js",
"version": "0.0.6",
"version": "0.0.7",
"dependencies": {},

@@ -22,0 +22,0 @@ "devDependencies": {

@@ -293,3 +293,4 @@ var should = require('should');

'-2': '-2nd',
'-3': '-3rd'
'-3': '-3rd',
112: '112th'
};

@@ -296,0 +297,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