my avatar image, a naturally textured flat green torus
belt πŸ¦•
utility belt for JS
npm i -D @ryanatkn/belt
homepage repo npm version license data
  • array.js
    • EMPTY_ARRAY
    • to_array
    • remove_unordered
    • to_next
  • async.js
    • Async_Status
    • wait
    • is_promise
  • colors.js
    • 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.js
    • Counter
    • Create_Counter
    • create_counter
  • dom.js
    • is_editable
    • inside_editable
    • swallow
    • handle_target_value
    • is_iframed
  • error.js
    • Unreachable_Error
  • fetch.js
    • Fetch_Value_Options
    • fetch_value
    • Fetch_Value_Cache_Key
    • Fetch_Value_Cache_Item
    • Fetch_Value_Cache
    • to_fetch_value_cache_key
    • serialize_cache
    • deserialize_cache
  • function.js
    • noop
    • noop_async
    • resolved
    • identity
    • Lazy
    • lazy
  • id.js
    • Uuid
    • is_uuid
    • UUID_MATCHER
    • Client_Id_Creator
    • create_client_id_creator
  • iterator.js
    • count_iterator
  • json.js
    • Json
    • Json_Type
    • to_json_type
    • canonicalize
    • embed_json
  • log.js
    • Log_Level
    • to_log_level_value
    • configure_log_level
    • Log
    • Logger_State
    • Base_Logger
    • Logger
    • System_Logger
    • print_log_label
  • map.js
    • sort_map
    • compare_simple_map_entries
  • maths.js
    • 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.js
    • is_plain_object
    • map_record
    • omit
    • pick_by
    • omit_undefined
    • reorder
    • EMPTY_OBJECT
    • traverse
  • obtainable.js
    • Unobtain
    • create_obtainable
  • path.js
    • parse_path_parts
    • parse_path_segments
    • parse_path_pieces
    • Path_Piece
    • slugify
  • print.js
    • Colorize
    • Colors
    • disabled_colors
    • get_colors
    • set_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.js
    • Spawned_Process
    • Spawned
    • Spawn_Result
    • spawn
    • Spawned_Out
    • spawn_out
    • spawn_process
    • print_child_process
    • global_spawn
    • register_global_spawn
    • despawn
    • despawn_all
    • attach_process_error_handlers
    • print_spawn_result
    • Restartable_Process
    • spawn_restartable_process
  • random_alea.js
    • Alea
    • create_random_alea
    • masher
  • random.js
    • random_float
    • random_int
    • random_boolean
    • random_item
    • shuffle
  • regexp.js
    • escape_regexp
  • result.js
    • Result
    • OK
    • NOT_OK
    • unwrap
    • Result_Error
    • unwrap_error
  • string.js
    • truncate
    • strip_start
    • strip_end
    • strip_after
    • strip_before
    • ensure_start
    • ensure_end
    • deindent
    • plural
    • count_graphemes
  • styletext.js
    • black
    • red
    • green
    • yellow
    • blue
    • magenta
    • cyan
    • white
    • gray
    • bg_black
    • bg_red
    • bg_green
    • bg_yellow
    • bg_blue
    • bg_magenta
    • bg_cyan
    • bg_white
    • bg_gray
    • reset
    • bold
    • italic
    • overlined
    • doubleunderline
    • framed
  • timings.js
    • Stopwatch
    • create_stopwatch
    • Timings_Key
    • Timings
  • types.js
    • Omit_Strict
    • Pick_Union
    • Keyof_Union
    • Partial_Except
    • Partial_Only
    • Partial_Values
    • Assignable
    • Defined
    • Not_Null
    • Array_Element
    • Flavored
    • Flavor
    • Branded
    • Brand
  • url.js
    • format_url
  • raw data for pkg: Package_Meta