Comparing version 0.1.1 to 0.2.1
10
index.js
@@ -1,5 +0,5 @@ | ||
exports.generate = function() { | ||
languages = ["Kotlin", "Java", "C++", "C#", "Python", "JavaScript", "C", "Groovy", "Perl", "Php", "Html", "Css", "F#", "Rust", "Ruby", "R"]; | ||
let language = languages[Math.floor(Math.random() * languages.length)]; | ||
return language; | ||
} | ||
const data = require('./data.js') | ||
module.exports = function gen() { | ||
return data[Math.floor(Math.random() * data.length)]; | ||
} |
{ | ||
"name": "rplg", | ||
"version": "0.1.1", | ||
"description": "A Random Programming Language Generator", | ||
"version": "0.2.1", | ||
"description": "Generate a random programming languag", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git init" | ||
}, | ||
"module": "index.mjs", | ||
"keywords": [ | ||
"js", | ||
"random-language", | ||
"generate", | ||
"random" | ||
], | ||
"author": "micziz", | ||
"license": "Apache-2.0" | ||
} | ||
"license": "ISC", | ||
"devDependencies": { | ||
"typescript": "^5.0.3" | ||
} | ||
} |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
1806
8
33
2
1
25
0
1
1