2.2.1 • Published 9 years ago

data-updater v2.2.1

Weekly downloads
20
License
ISC
Repository
-
Last release
9 years ago

data-updater

Install

npm install --save data-updater

Use

var dataUpdater = require('data-updater');

var updater = dataUpdater.fromFile('path/to/data.json', 1000);

updater.on('error', function(err) {
	// Runs if an error occurs to read the data file
});

updater.on('old', function() {
	// Runs when data file was not updated since last attempt
});

updater.on('update', function(data) {
	// Runs when data file was updated sice last attempt
});

update.on('first-update', function(err) {
	// Runs after first update attempt, can be unsuccessful
});

update.on('first-successful-update', function() {
	// Runs after first successful update attempt
});
2.2.1

9 years ago

2.2.0

9 years ago

2.1.0

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

11 years ago

1.0.0

11 years ago