@kentcdodds/tmp-random-number-2
Advanced tools
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| exports.default = function (min, max) { | ||
| return Math.random() * (max - min) + min; | ||
| }; |
+40
-5
| { | ||
| "name": "@kentcdodds/tmp-random-number-2", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Do not use this, it is fake", | ||
| "main": "index.js", | ||
| "main": "dist/index.js", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| "build": "babel --copy-files --out-dir dist --ignore __tests__,__mocks__ src", | ||
| "test": "jest --coverage", | ||
| "lint": "eslint .", | ||
| "validate": "npm-run-all --parallel build test lint", | ||
| "setup": "npm install && npm run validate" | ||
| }, | ||
@@ -13,3 +17,3 @@ "keywords": [ | ||
| "files": [ | ||
| "index.js" | ||
| "dist" | ||
| ], | ||
@@ -25,3 +29,34 @@ "author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)", | ||
| }, | ||
| "homepage": "https://github.com/kentcdodds/tmp-random-number-2#readme" | ||
| "homepage": "https://github.com/kentcdodds/tmp-random-number-2#readme", | ||
| "devDependencies": { | ||
| "babel-cli": "^6.26.0", | ||
| "babel-preset-env": "^1.6.1", | ||
| "eslint": "^4.19.1", | ||
| "jest": "^22.4.3", | ||
| "npm-run-all": "^4.1.2" | ||
| }, | ||
| "eslintConfig": { | ||
| "extends": "eslint:recommended", | ||
| "parserOptions": { | ||
| "ecmaVersion": 8, | ||
| "sourceType": "module" | ||
| }, | ||
| "env": { | ||
| "browser": true, | ||
| "commonjs": true, | ||
| "es6": true, | ||
| "node": true, | ||
| "jest": true | ||
| } | ||
| }, | ||
| "eslintIgnore": [ | ||
| "node_modules", | ||
| "coverage", | ||
| "dist" | ||
| ], | ||
| "babel": { | ||
| "presets": [ | ||
| "env" | ||
| ] | ||
| } | ||
| } |
-1
| module.exports = (min, max) => Math.random() * (max - min) + min |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
3497
32.01%6
500%0
-100%5
Infinity%