1.0.1 • Published 6 years ago

@tiaanduplessis/throttlify v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@tiaanduplessis/throttlify

package version package downloads standard-readme compliant package license make a pull request

Little throttle function

Table of Contents

Install

This project uses node and npm.

$ npm install @tiaanduplessis/throttlify
$ # OR
$ yarn add @tiaanduplessis/throttlify

Usage

import throttlify from '@tiaanduplessis/throttlify'

const log = (...args) => console.log(...args)
const throttledLog = throttlify(log, 400) 

throttledLog('First Foo!') 
throttledLog('Ignored Foo!')
throttledLog('Ingored Foo!')

// First Foo!

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am 'Add some feature'
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT

1.0.1

6 years ago

1.0.0

7 years ago