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

ordinal-number-suffix

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

ordinal-number-suffix - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

History.md
0.1.2 / 2018-08-09
==================
* Fix for numbers greater than 100. (#3)
# 0.1.1

@@ -8,2 +13,2 @@

- initial release
- initial release

@@ -21,2 +21,3 @@

exports.suffix = function (n) {
n %= 100
return Math.floor(n / 10) === 1

@@ -23,0 +24,0 @@ ? 'th'

2

package.json
{
"name": "ordinal-number-suffix",
"version": "0.1.1",
"version": "0.1.2",
"description": "add suffixes to numbers (1st, 33rd, etc.)",

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

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