khairwal-utilities

1.0.3 • Public • Published

What is this?

Get perfect shadows every time for the non-designer.

Installation

npm install khairwal-utilities --save

Then...

import { shadowizard } from 'khairwal-utilities';

shadowizard({
    shadow_type: 'soft',
    padding: false
});

Options

Shadowizard support 2 options, both of which are optional:

  • shadow_type - _hard/_soft (Defaults to _soft)
  • padding - boolean (Defaults to false)

What is this?

Get debouncing and throttling techniques for Javascript developers.

Installation

npm install khairwal-utilities --save

Then...

import { debounce } from 'khairwal-utilities';

var db = debounce(func, wait);

Parameters

debouncs support 2 parameters, both of which are required:

  • func - function to debounce
  • wait - time to debounce (in milliseconds)

Example

import { debounce } from 'khairwal-utilities';

var debounce_fun = debounce(function () {
  console.log('Function debounced after 1000ms!');
  }, 1000);
  
debounce_fun();

Package Sidebar

Install

npm i khairwal-utilities

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

2.94 kB

Total Files

3

Last publish

Collaborators

  • deepak_khairwal