Search results
314 packages found
Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center
- behavior-smooth
- if-needed
- polyfill
- ponyfill
- scroll
- scroll-into-view
- scrollIntoView
- scrollIntoViewIfNeeded
- scrollMode
- smooth
- smoothscroll
- typescript
The engine that powers scroll-into-view-if-needed
- if-needed
- scroll
- scroll-into-view
- scroll-into-view-if-needed
- scrollIntoView
- scrollIntoViewIfNeeded
- scrollMode
- typescript
React Hook to show if window is focused or not
Ponyfill for smooth scrolling elements into view (if needed!)
- behavior-smooth
- if-needed
- polyfill
- ponyfill
- scroll
- scroll-into-view
- scrollIntoView
- scrollIntoViewIfNeeded
- scrollMode
- smooth
- smoothscroll
- typescript
Check if files in selected directories has the same structure.
detect file extensions, check if text or binary file, or get list of text or binary file extensions
- binary
- extensions
- extension
- file
- path
- check
- detect
- is
- browser
- deno
- deno-edition
- deno-entry
- denoland
- es2022
- View more
Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.
Loop an array backwards! Give loopBackwards() an array and a callback. Calback provides the current item, a splice function, and the current index. Splice function removes item from the array. If the splice function is called & the current item is a DOM e
Cross-browser, lightweight way to check if user is looking at the page or interacting with it. (wrapper around HTML5 visibility api)
Give eachr an item to iterate (array, object or map) and an iterator, then in return eachr gives iterator the value and key of each item, and will stop if the iterator returned false.
- array
- browser
- cycle
- deno
- deno-edition
- deno-entry
- denoland
- each
- es2022
- es5
- export-default
- flow
- forEach
- map
- View more
TypeScript maybe monad for reaching child fields inside complicated objects.
Check if a path is accessible
- access
- accessible
- deno
- deno-edition
- deno-entry
- denoland
- ecmascript
- es2015
- es2022
- es5
- executable
- export-default
- file
- from
- View more
[![CI](https://github.com/KonstantinSimeonov/tsx-control-statements/actions/workflows/ci.yml/badge.svg)](https://github.com/KonstantinSimeonov/tsx-control-statements/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/Konstanti
Typescript if-else support at the type level
Check if a value is an `Error` instance
- browser
- cross-realm
- dom
- error
- error-handle
- error-handler
- error-handlers
- error-handling
- error-monitoring
- error-reporting
- errors
- exception
- exception-handling
- instanceof
- View more
Ambi lets you execute any function ambidextrously; providing you the ability to execute any function (be it synchronous, asynchronous, returns, callbacks, promises) as if it returned a promise.
- ambidextrous
- async
- asynchronous
- browser
- deno
- deno-edition
- deno-entry
- denoland
- es2022
- es5
- exec
- execute
- export-default
- fire
- View more
Compares objects and arrays and tells you which props or values are duplicates, and which are only present once.
- typescript
- javascript
- compare
- countif
- count-if
- duplicates
- compare-objects
- compare-arrays
- find-duplicates
- remove-duplicates
Comparator to determine if a version is less than, equivalent to, or greater than another version
Validate if a value is a positive integer between 0 & Number.MAX_SAFE_INTEGER
- assert
- assertion
- bound
- check
- ecmascript
- es2015
- guard
- int
- integer
- is-positive-int
- javascript
- maximum
- num
- number
- View more
Check if a string is a valid filename.
- check
- deno
- deno-edition
- deno-entry
- denoland
- es2022
- export-default
- file
- file format
- file name
- file naming
- file validation
- filename
- filename checking
- View more