New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

auto-save

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-save

a tiny timer wrapper that is useful for implementing auto-save in text-based applications

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

auto-save

FAQs

Package last updated on 17 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts