function-timeout

Make a synchronous function have a timeout

v1.0.2 MIT 5 versions Maintained by sindresorhus
  • function
  • synchronous
  • timeout
  • time
  • out
  • cancel
  • expire
  • abort
  • regex
  • regexp
  • redos
  • security
Weekly downloads
7.6M +6%
vs previous week
Last 30 days
27.6M
Stars

Downloads

151.7M total · Aug 31, 2025 – Aug 31, 2026

Downloads by version

Last 7 days

Versions

5 releases published since Jun 3, 2022

Commit activity

Last 12 months

Contributors

Top 10

Issues