beltย ๐Ÿฆ•
utility belt for JS
ancient not extinct
npm i -D @ryanatkn/belt
homepage repo npm version license data
  • array.ts
    • EMPTY_ARRAY
    • to_array
    • remove_unordered
    • to_next
  • async.ts
    • AsyncStatus
    • wait
    • is_promise
    • Deferred
    • create_deferred
    • map_concurrent
    • map_concurrent_settled
  • colors.ts
    • Hsl
    • Hue
    • Saturation
    • Lightness
    • Rgb
    • Red
    • Green
    • Blue
    • rgb_to_hex
    • hex_to_rgb
    • hex_string_to_rgb
    • rgb_to_hex_string
    • to_hex_component
    • rgb_to_hsl
    • hsl_to_rgb
    • hue_to_rgb_component
    • hsl_to_hex
    • hsl_to_hex_string
    • hsl_to_string
    • hex_string_to_hsl
    • parse_hsl_string
  • counter.ts
    • Counter
    • CreateCounter
    • create_counter
  • deep_equal.ts
    • deep_equal
  • dom.ts
    • is_editable
    • inside_editable
    • is_interactive
    • swallow
    • handle_target_value
    • is_iframed
  • error.ts
    • UnreachableError
    • unreachable
  • fetch.ts
    • FetchValueOptions
    • fetch_value
    • FetchValueCacheKey
    • FetchValueCacheItem
    • FetchValueCache
    • to_fetch_value_cache_key
    • serialize_cache
    • deserialize_cache
  • fs.ts
    • fs_exists
    • fs_empty_dir
    • FsSearchOptions
    • fs_search
  • function.ts
    • noop
    • noop_async
    • resolved
    • identity
    • Thunk
    • unthunk
  • git.ts
    • GitOrigin
    • GitBranch
    • git_current_branch_name
    • git_remote_branch_exists
    • git_local_branch_exists
    • GitWorkspaceStatus
    • git_parse_workspace_status
    • git_check_workspace
    • git_workspace_is_clean
    • git_workspace_is_fully_staged
    • git_workspace_status_message
    • git_check_clean_workspace
    • git_check_fully_staged_workspace
    • git_fetch
    • git_checkout
    • git_pull
    • git_push
    • git_push_to_create
    • git_delete_local_branch
    • git_delete_remote_branch
    • git_reset_branch_to_first_commit
    • git_current_commit_hash
    • git_current_branch_first_commit_hash
    • git_check_setting_pull_rebase
    • git_clone_locally
  • id.ts
    • Uuid
    • is_uuid
    • UUID_MATCHER
    • ClientIdCreator
    • create_client_id_creator
  • iterator.ts
    • count_iterator
  • json.ts
    • Json
    • JsonPrimitive
    • JsonObject
    • JsonArray
    • JsonType
    • json_type_of
    • json_embed
    • json_stringify_deterministic
  • library_json.ts
    • LibraryJson
    • library_json_parse
    • library_repo_name_parse
    • library_org_url_parse
  • log.ts
    • LogLevel
    • LogConsole
    • log_level_to_number
    • log_level_parse
    • Logger
    • LoggerOptions
  • map.ts
    • sort_map
    • compare_simple_map_entries
  • maths.ts
    • clamp
    • lerp
    • round
    • GR
    • GR_i
    • GR_2
    • GR_2i
    • GR_3
    • GR_3i
    • GR_4
    • GR_4i
    • GR_5
    • GR_5i
    • GR_6
    • GR_6i
    • GR_7
    • GR_7i
    • GR_8
    • GR_8i
    • GR_9
    • GR_9i
  • object.ts
    • is_plain_object
    • map_record
    • omit
    • pick_by
    • omit_undefined
    • reorder
    • EMPTY_OBJECT
    • traverse
    • transform_empty_object_to_undefined
  • package_json.ts
    • PackageJsonRepository
    • PackageJsonAuthor
    • PackageJsonFunding
    • ExportValue
    • PackageJsonExports
    • PackageJson
  • path.ts
    • PathId
    • PathInfo
    • ResolvedPath
    • PathFilter
    • FileFilter
    • to_file_path
    • parse_path_parts
    • parse_path_segments
    • PathPiece
    • parse_path_pieces
    • slugify
  • print.ts
    • st
    • configure_print_colors
    • print_key_value
    • print_ms
    • print_number_with_separators
    • print_string
    • print_number
    • print_boolean
    • print_value
    • print_error
    • print_timing
    • print_timings
  • process.ts
    • SpawnedProcess
    • Spawned
    • SpawnResult
    • spawn
    • SpawnedOut
    • spawn_out
    • spawn_process
    • print_child_process
    • global_spawn
    • register_global_spawn
    • despawn
    • despawn_all
    • attach_process_error_handlers
    • print_spawn_result
    • RestartableProcess
    • spawn_restartable_process
  • random_alea.ts
    • Alea
    • create_random_alea
    • masher
  • random.ts
    • random_float
    • random_int
    • random_boolean
    • random_item
    • shuffle
  • regexp.ts
    • escape_regexp
    • reset_regexp
  • result.ts
    • Result
    • OK
    • NOT_OK
    • unwrap
    • ResultError
    • unwrap_error
  • source_json.ts
    • DeclarationKind
    • GenericParamInfo
    • ParameterInfo
    • ComponentPropInfo
    • DeclarationJson
    • ModuleJson
    • SourceJson
    • declaration_get_display_name
    • declaration_generate_import
  • string.ts
    • truncate
    • strip_start
    • strip_end
    • strip_after
    • strip_before
    • ensure_start
    • ensure_end
    • deindent
    • plural
    • count_graphemes
    • strip_ansi
    • stringify
  • throttle.ts
    • ThrottleOptions
    • throttle
  • timings.ts
    • Stopwatch
    • create_stopwatch
    • TimingsKey
    • Timings
  • types.ts
    • ClassConstructor
    • OmitStrict
    • PickUnion
    • KeyofUnion
    • PartialExcept
    • PartialOnly
    • PartialValues
    • Assignable
    • Defined
    • NotNull
    • ArrayElement
    • Flavored
    • Flavor
    • Branded
    • Brand
  • url.ts
    • format_url
    • Url