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

@kimamula/fizzbuzz

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kimamula/fizzbuzz - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

bin.js
#!/usr/bin/env node
'use strict'
const arg = process.argv[2];
const num = Number(arg);
const arg = process.argv[2]
const num = Number(arg)
if (Number.isNaN(num)) {
throw new Error(`${arg} is not a number`);
throw new Error(`${arg} is not a number`)
}
console.log(require('.')(num));
console.log(require('.')(num))

@@ -0,13 +1,14 @@

'use strict'
module.exports = function (num) {
// FizzBuzzの判定を先頭に移動する
if (num % 15 === 0) {
return 'FizzBuzz';
return 'FizzBuzz'
}
if (num % 3 === 0) {
return 'Fizz';
return 'Fizz'
}
if (num % 5 === 0) {
return 'Buzz';
return 'Buzz'
}
return String(num);
};
return String(num)
}
{
"name": "@kimamula/fizzbuzz",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -14,2 +14,2 @@ "main": "index.js",

"license": "MIT"
}
}

Sorry, the diff of this file is not supported yet

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