2.2.1 • Published 8 years ago

data-updater v2.2.1

Weekly downloads
20
License
ISC
Repository
-
Last release
8 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

8 years ago

2.2.0

8 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago