Socket
Socket
Sign inDemoInstall

@lite-v3/common-helpers

Package Overview
Dependencies
0
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lite-v3/common-helpers

Public common helpers for Tokopedia Web


Version published
Weekly downloads
7.4K
increased by19.24%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

🙏 @lite-v3/common-helpers

Public common helpers for Tokopedia Web

By Tokopedia Version

Installation

Install deps

# Use pnpm
pnpm add @lite-v3/common-helpers

# Use npm
npm i @lite-v3/common-helpers

# Use yarn
yarn add @lite-v3/common-helpers

Available Helpers

# sort by alphabet
├─ array
  ├── chunk
  ├── createRange
  ├── createRangeWithStep
  ├── dedupe
├─ currency
  ├── removeRp
  ├── removeThousandSeparator
  ├── toIDR
  ├── toNumber
├─ date
  ├── constant
  ├── formatDay
  ├── formatMonthTitle
  ├── formatWeekdayLong
  ├── formatWeekdayShort
  ├── getFirstDayOfWeek
  ├── getTimeDiffAsObject
  ├── isValidDate
  ├── timestampFromNow
├─ env
  ├── canUseDOM
  ├── isSafari
├─ error
  ├── getErrorMessage
├─ fp
  ├── compose
  ├── debounce
  ├── defer
  ├── flow
  ├── flowRight
  ├── noop
  ├── omit
├─ json
  ├── safeParse
├─ logic
  ├── execIfFunc
  ├── ifElse
  ├── shallowEqual
├─ mask
  ├── maskAddress
  ├── maskEmail
├─ number
  ├── counterFormat
  ├── fileSizeFormat
  ├── formatNumberUnified
  ├── formatWeight
  ├── getRandomNumber
  ├── humanizeReviewCount
  ├── numberWithCommas
  ├── removeNonNumber
  ├── thousandSeparator
├─ object
  ├── isObject
├─ string
  ├── escapeRegExp
  ├── randomString
  ├── removeScriptTag
  ├── replaceDot
  ├── sanitizeLang
  ├── slugify
  ├── stringTemplate
  ├── titleCase
├─ styles
  ├── hexToRgba
  ├── pxToRem

Code By WPE Team @Tokopedia

FAQs

Last updated on 24 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc