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

num2fraction

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

num2fraction - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

index.js

@@ -26,3 +26,3 @@ 'use strict';

function num2fraction(num) {
if (num === 0) return 0
if (num === 0 || num === '0') return '0'

@@ -47,3 +47,5 @@ if (typeof num === 'string') {

console.log(num2fraction('0'))
module.exports = num2fraction
{
"name": "num2fraction",
"version": "1.2.0",
"version": "1.2.1",
"description": "Convert number to fraction",

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

@@ -60,2 +60,6 @@ # num2fraction

### v1.2.1
* \+ Fix: 0 must be converted to a string.
### v1.2.0

@@ -62,0 +66,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