{
  "_id": "just-debounce",
  "maintainers": [
    {
      "name": "hayes",
      "email": "michael@hayes.io"
    }
  ],
  "keywords": [
    "debounce"
  ],
  "dist-tags": {
    "latest": "1.1.0"
  },
  "author": {
    "name": "Michael Hayes"
  },
  "_rev": "11-ebf4289612b73dc9d60636c15ce9eebd",
  "description": "a simple debounce with no dependencies or crazy defaults",
  "readme": "# just-debounce\n\njust a basic debounce function\n\n# changes\n\n- `1.1.0`: added typescript definitions\n\n# Why?\n\nI searched npm and the first 3 pages of results for \"debounce\" did not have a small correctly\nimplemented version of debounce\n\n# Usage\n\n### arguments\n\n- `fn`: the function to debounce\n- `delay`: debounce delay in ms\n- `atStart:` if true, the function will be called at the beginning of the delay rather than the end\n- `guarantee`: additional calls to debounced function will not reset they `delay`. This guarantees\n  that if the function is called frequently, it will fire once every `delay` rather than waiting for\n  a break in calls.\n\n```javascript\nvar db = require('just-debounce');\n\nvar debounced = db(function (v) {\n  console.log(v);\n}, 100);\n\ndebounced('hi');\ndebounced('hi');\n// logs 'hi' once after 100ms\n```\n\n```javascript\nvar db = require('just-debounce');\n\nvar debounced = db(\n  function (v) {\n    console.log(v);\n  },\n  100,\n  true\n);\n\ndebounced('hi');\ndebounced('hi');\n// logs 'hi' once right away, but not a second time. calling after 100ms will log again\n```\n\n```javascript\nvar db = require('just-debounce');\n\nvar debounced = db(\n  function (v) {\n    console.log(v);\n  },\n  100,\n  false,\n  true\n);\n\ndebounced('hi');\nsetTimeout(function () {\n  debounced('hi2');\n}, 80);\n\n// logs 'hi2' once 100ms after the first call to debounced\n```\n\n# license\n\nMIT\n",
  "repository": {
    "type": "git",
    "url": "git://github.com/hayes/just-debounce.git"
  },
  "bugs": {
    "url": "https://github.com/hayes/just-debounce/issues"
  },
  "license": "MIT",
  "versions": {
    "0.0.1": {
      "name": "just-debounce",
      "version": "0.0.1",
      "description": "just-debounce =============",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/hayes/just-debounce.git"
      },
      "keywords": [
        "debounce"
      ],
      "author": {
        "name": "Michael Hayes"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/hayes/just-debounce/issues"
      },
      "homepage": "https://github.com/hayes/just-debounce",
      "_id": "just-debounce@0.0.1",
      "dist": {
        "shasum": "4f5eb5d7bf00ffb90d3ea2a19114ed1e32051235",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/just-debounce/-/just-debounce-0.0.1.tgz",
        "integrity": "sha512-4JV95l/YhrAw0cseK06Mdtk9uta5OLyM7CJ/QftM0nc/YB1oSdc9f/TL5E4m76sA/igrAh5h9EFzNDYTsNREQg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCICmzPZkz4rqhLCiJtF6mURq3jiRATHoaMMWOI07rPJ/6AiEAphcC16YrTvuerbf/aI5Tsd88TvJj3A2CawVaJjchkXM="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.4.6",
      "_npmUser": {
        "name": "hayes",
        "email": "me@michaelghayes.com"
      },
      "maintainers": [
        {
          "name": "hayes",
          "email": "me@michaelghayes.com"
        }
      ],
      "directories": {}
    },
    "0.0.2": {
      "name": "just-debounce",
      "version": "0.0.2",
      "description": "a simple debounce with no dependencies or crazy defaults",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/hayes/just-debounce.git"
      },
      "keywords": [
        "debounce"
      ],
      "author": {
        "name": "Michael Hayes"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/hayes/just-debounce/issues"
      },
      "homepage": "https://github.com/hayes/just-debounce",
      "_id": "just-debounce@0.0.2",
      "dist": {
        "shasum": "4380e2d78a32e819604a41df37235240f1507ee4",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/just-debounce/-/just-debounce-0.0.2.tgz",
        "integrity": "sha512-VcqazpZXU3t3ntFaG84tnNaVcgXzFwUITL5W1l8PgZ4ANFq4ALubn/MnL3AD8bGWpv9Nk8qV7Y7eI8nkZVxpVg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIC5w2o7tsYB1IRamG8EhtcYYl7wToUF2sQCTHXToQ5/yAiAMnumX1ogLlsFypxWPkJOyaKESGN7H3Q3wBrxHdNMQKw=="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.4.6",
      "_npmUser": {
        "name": "hayes",
        "email": "me@michaelghayes.com"
      },
      "maintainers": [
        {
          "name": "hayes",
          "email": "me@michaelghayes.com"
        }
      ],
      "directories": {}
    },
    "0.0.3": {
      "name": "just-debounce",
      "version": "0.0.3",
      "description": "a simple debounce with no dependencies or crazy defaults",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/hayes/just-debounce.git"
      },
      "keywords": [
        "debounce"
      ],
      "author": {
        "name": "Michael Hayes"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/hayes/just-debounce/issues"
      },
      "homepage": "https://github.com/hayes/just-debounce",
      "gitHead": "28f0b6ef61cb165fdcd9749a6afb456596062ec5",
      "_id": "just-debounce@0.0.3",
      "_shasum": "04bf4ab52276d76e7b68a493c6415ecf48cfde0f",
      "_from": ".",
      "_npmVersion": "2.1.7",
      "_nodeVersion": "0.10.32",
      "_npmUser": {
        "name": "hayes",
        "email": "michael@hayes.io"
      },
      "maintainers": [
        {
          "name": "hayes",
          "email": "me@michaelghayes.com"
        }
      ],
      "dist": {
        "shasum": "04bf4ab52276d76e7b68a493c6415ecf48cfde0f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/just-debounce/-/just-debounce-0.0.3.tgz",
        "integrity": "sha512-QkDme/wMWYwVlKDMVxBnDdQDrLvyp+FbRvxLTSLH6JK4pv3EJDHwt1rRA73vFbLajCgybsZ9UOZ7OQFW7VLzKQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHm1QrQTeN7Tdli0A5t12qiHlwGl0gLkM/Uk82oGuD8uAiEA3Z2L3IJJsfrqsPY5hEzSUvU4KPCKD+LgR03/T9n7rtk="
          }
        ]
      },
      "directories": {}
    },
    "1.0.0": {
      "name": "just-debounce",
      "version": "1.0.0",
      "description": "a simple debounce with no dependencies or crazy defaults",
      "main": "index.js",
      "scripts": {
        "test": "node test.js && npm run lint",
        "lint": "eslint ."
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/hayes/just-debounce.git"
      },
      "keywords": [
        "debounce"
      ],
      "author": {
        "name": "Michael Hayes"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/hayes/just-debounce/issues"
      },
      "homepage": "https://github.com/hayes/just-debounce",
      "devDependencies": {
        "eslint": "^0.22.1",
        "eslint-config-standard": "^2.0.0",
        "eslint-plugin-react": "^2.4.0",
        "tape": "^4.0.0"
      },
      "gitHead": "6a89553b64548ee9024bd13a10d639e1ae12d098",
      "_id": "just-debounce@1.0.0",
      "_shasum": "87fccfaeffc0b68cd19d55f6722943f929ea35ea",
      "_from": ".",
      "_npmVersion": "1.4.28",
      "_npmUser": {
        "name": "hayes",
        "email": "michael@hayes.io"
      },
      "maintainers": [
        {
          "name": "hayes",
          "email": "me@michaelghayes.com"
        }
      ],
      "dist": {
        "shasum": "87fccfaeffc0b68cd19d55f6722943f929ea35ea",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/just-debounce/-/just-debounce-1.0.0.tgz",
        "integrity": "sha512-/QLqfspz7WJ+TPmzDp5WJOlm2r3j+/12rGo7dG5uwD9vGM5sWg8p251b7Us0p19JqjddJzcYOK2v6FN92nREmg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDcQW8PXqZ85qa8Qm5PBG0f+oaK0rnHDbxfKxqJbK6+GAIge8/ESpiBpcXHZWTXYkvGAmrX8WqyvxxdNjIGbtT+xZM="
          }
        ]
      },
      "directories": {}
    },
    "1.1.0": {
      "name": "just-debounce",
      "version": "1.1.0",
      "description": "a simple debounce with no dependencies or crazy defaults",
      "main": "index.js",
      "scripts": {
        "test": "node test.js && npm run lint",
        "lint": "eslint ."
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/hayes/just-debounce.git"
      },
      "keywords": [
        "debounce"
      ],
      "author": {
        "name": "Michael Hayes"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/hayes/just-debounce/issues"
      },
      "homepage": "https://github.com/hayes/just-debounce",
      "devDependencies": {
        "eslint": "^7.20.0",
        "eslint-plugin-prettier": "^3.3.1",
        "prettier": "^2.2.1",
        "tape": "^5.1.1"
      },
      "gitHead": "99323e62874f39fadb4d52d6c99fc4c73c652bc0",
      "_id": "just-debounce@1.1.0",
      "_nodeVersion": "14.15.0",
      "_npmVersion": "6.14.8",
      "dist": {
        "integrity": "sha512-qpcRocdkUmf+UTNBYx5w6dexX5J31AKK1OmPwH630a83DdVVUIngk55RSAiIGpQyoH0dlr872VHfPjnQnK1qDQ==",
        "shasum": "2f81a3ad4121a76bc7cb45dbf704c0d76a8e5ddf",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/just-debounce/-/just-debounce-1.1.0.tgz",
        "fileCount": 9,
        "unpackedSize": 7560,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLWduCRA9TVsSAnZWagAAXp8P+QFFLb2FjXwXcJBcT1Mx\n5hXMsvTHM3fKIVw8E0kz6uYw9K103ObslSTz2t3YtaBWglaRPEfSwgpCyMPH\nlJ/b0yT//nKojnVtXhXP7XKffQ17UA3LaX+IKB2QbTzRB/mlJKQoZcPufC+G\nMcgza35d/PYDTbvchZSLmCf2JD/xQVgKYsHUzPpPJFlDHy4N+lHt3D0Dcxu2\nF46swe/j1IL/o/eCMobHr7+vkCnl6UGAHAdXm5EtqwszFkO6u3WG0UyABMDx\nHEX8giup40Jkwm20vFXAaoPsYPLDcdNiR6oVu8Nhqxza+32j98Weawi+q4h0\n40eUQw7pJNeLOJpZNvViAKX55ToX5hgexuTtd8W8Gr3OKNGlP3dfOvUJqcFD\nksybZk64qsc5AUM7DKztDbsnbHyeaoonOJTdJf4otpu1JDQrOmezEEgOXvhZ\nh+KHLZizkUNDcuzOphdxPetkmk0nCaPyRLSqFsn6202HVH+pmTZaCLxJursC\nYvpiiDVncp2i2GZADT8ZMAZ1P0J76Omy6pQKqt7H+NNojurPLgOCkThvsSnJ\nRdryOQ+2n0jMnBdNUqwnAHosNlDYYEo3rm7aWf1zXPxcMAirk6OraHpPzyuJ\nXFMtboiCA8esKhQ2jXkD7c4GDFM4iZbH4PZxwjPJ6bZlZpOQ1yFWYEi3x9UJ\ns0/W\r\n=pK5N\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCdsGm0wBvN3pGXzQU7UiLz55LXy9vBpLp5YJmp0onnugIgSEtkSlKD9bfqFtvXBqiHkotvMK+ifYadHzuRC2YPRiA="
          }
        ]
      },
      "_npmUser": {
        "name": "hayes",
        "email": "michael@hayes.io"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "hayes",
          "email": "michael@hayes.io"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/just-debounce_1.1.0_1613588333984_0.881941807087441"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "just-debounce",
  "time": {
    "modified": "2026-05-20T15:56:30.603Z",
    "created": "2014-04-04T01:27:46.585Z",
    "0.0.1": "2014-04-04T01:27:46.585Z",
    "0.0.2": "2014-04-04T17:34:32.074Z",
    "0.0.3": "2014-11-29T17:13:53.203Z",
    "1.0.0": "2015-06-03T22:26:11.731Z",
    "1.1.0": "2021-02-17T18:58:54.102Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/hayes/just-debounce"
}