gerardolima-number-formatter
Advanced tools
Comparing version 1.0.3 to 1.0.4
14
index.js
@@ -1,11 +0,3 @@ | ||
'use strict'; | ||
/** | ||
* Adds commas to a number | ||
* @param {number} number | ||
* @param {string} locale | ||
* @return {string} | ||
*/ | ||
module.exports = function(number, locale) { | ||
return number.toLocaleString(locale); | ||
}; | ||
"use strict"; | ||
var myLocaleString = require("./src/myLocaleString"); | ||
module.exports = myLocaleString; |
{ | ||
"name": "gerardolima-number-formatter", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Test for creating a Npm package.", | ||
@@ -8,2 +8,4 @@ "main": "index.js", | ||
"test": "mocha --reporter spec", | ||
"clean": "rm -rf *.js", | ||
"build": "tsc index.ts --module commonjs", | ||
"cover": "node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- -R spec test/*" | ||
@@ -29,4 +31,5 @@ }, | ||
"istanbul": "^0.4.5", | ||
"mocha": "^3.1.0" | ||
"mocha": "^3.1.0", | ||
"typescript": "^2.0.3" | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2113
5
3