1.0.4 • Published 3 years ago

@fightingdoggo/edreader v1.0.4

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
3 years ago

EdReader

What does this module do: EdReader fires an event every time the game updates the corresponding files, Under here you can see the event names with what they show:

EventTriggered when:
StatusTriggers when data inside event changes
CargoTriggers every time your cargo has changed
ShipyardTriggers when opening shipyard screen
ModulesInfoTriggers when opening module screen on left display
NavRouteTriggers when setting route in galaxy map
MarketTriggers when opening Market
OutfittingTriggers when opening outfitting
JournalTriggers every time a new event happens (Except the events above)
allDataTriggers every time any event above triggers (Only if started with startRead)

How to use:

const edreader = require("edreader");

//Tell EdReader to start watching for updates, This will also send the full log if Journal
edreader.startRead("Journal")

//Fired every time EdReader sees an update
//This will send the event as the game sends it in the game journal
edreader.on('Journal', data => {
	//Code to process output
});

edreader.on("error", err => {
	if (err) throw err;
})

//Tell EdReader to stop watching for updates
edreader.stopRead("Journal")
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago