@tiaanduplessis/throttlify

1.0.1 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @tiaanduplessis/throttlify

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.21 kB

Total Files

9

Last publish

Collaborators

  • tiaanduplessis