Socket
Socket
Sign inDemoInstall

y18n

Package Overview
Dependencies
0
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 2.0.0

2

index.js

@@ -115,3 +115,3 @@ var fs = require('fs')

return util.format.apply(util, [str, quantity].concat(args))
return util.format.apply(util, [str].concat(args))
}

@@ -118,0 +118,0 @@

{
"name": "y18n",
"version": "1.1.0",
"version": "2.0.0",
"description": "the bare-bones internationalization library used by yargs",

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

@@ -31,3 +31,3 @@ # y18n

console.log(__('%s fish %s', '%s fishes %s', 2, 'foo'))
console.log(__('%s fish %s', '%s fishes %s', 2, 2, 'foo'))
```

@@ -34,0 +34,0 @@

@@ -127,3 +127,3 @@ /* global describe, it, after, beforeEach */

__n('%s cat', '%s cats', 1).should.equal('1 cat')
__n('%s cat', '%s cats', 1, 1).should.equal('1 cat')
})

@@ -136,3 +136,3 @@

__n('%s cat', '%s cats', 2).should.equal('2 cats')
__n('%s cat', '%s cats', 2, 2).should.equal('2 cats')
})

@@ -145,3 +145,3 @@

__n('%s %s cat', '%s %s cats', 2, 'black').should.equal('2 black cats')
__n('%s %s cat', '%s %s cats', 2, 2, 'black').should.equal('2 black cats')
})

@@ -155,4 +155,4 @@

__n('%s cat', '%s cats', 1).should.equal('1 land catfish')
__n('%s cat', '%s cats', 3).should.equal('3 land catfishes')
__n('%s cat', '%s cats', 1, 1).should.equal('1 land catfish')
__n('%s cat', '%s cats', 3, 3).should.equal('3 land catfishes')
})

@@ -173,3 +173,3 @@

__n('%s le cat', '%s le cats', 1).should.equal('1 le cat')
__n('%s le cat', '%s le cats', 1, 1).should.equal('1 le cat')
})

@@ -176,0 +176,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc