Package Exports
- evelyn_mspacecraft-utils
- evelyn_mspacecraft-utils/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (evelyn_mspacecraft-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Spacecraft Utilities 🚀
Een utility package voor ruimtevaarttoepassingen
Installatie
npm install spacecraft-utilsGebruik
const { getRandomResource, getRandomSensor } = require('spacecraft-utils');
// Willekeurige grondstof
console.log(getRandomResource()); // Bijv: "ijzererts"
// Willekeurige sensor
console.log(getRandomSensor()); // Bijv: "Camera"API
getRandomResource()
Retourneert een willekeurige grondstof uit: ["ijzererts", "Zilver", "goud", "nikkel", "titanium", "waterstof"]
getRandomSensor()
Retourneert een willekeurige sensor uit: ["Temperatuur", "Camera", "Radar", "Spectrometer", "Magnetometer"]
getAllSensors()
Retourneert alle beschikbare sensoren als array
Bijdragen
Pull requests zijn welkom! Zorg ervoor dat je tests toevoegt voor nieuwe functionaliteit.
License
MIT © [Jouw Naam]