Skip to content

A simple timer wrapper that is useful for implementing delayed autosave in text-based web applications, like Google Docs.

Notifications You must be signed in to change notification settings

bmcmahen/auto-save

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-save

A simple timer wrapper that is useful for implementing a delayed autosave in text-based applications, like Google Docs.

Installation

Install with component(1):

$ component install bmcmahen/auto-save

API

// 500 represents the timeout duration in ms.
var autosave = require('auto-save')(500);
var txt = document.getElementByTagName('textarea')[0];
txt.oninput = function(){
  interval(function(){
    console.log('do some saving.');
  });
};

License

MIT

About

A simple timer wrapper that is useful for implementing delayed autosave in text-based web applications, like Google Docs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published