Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lite-v3/common-helpers

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lite-v3/common-helpers - npm Package Compare versions

Comparing version 0.0.1 to 0.0.6

dist/array/chunk.d.ts.map

1

dist/array/chunk.d.ts

@@ -15,1 +15,2 @@ /**

export default chunk;
//# sourceMappingURL=chunk.d.ts.map

@@ -8,1 +8,2 @@ /**

export default createRange;
//# sourceMappingURL=createRange.d.ts.map
declare const _default: (start: number, stop: number, step: number) => number[];
export default _default;
//# sourceMappingURL=createRangeWithStep.d.ts.map

@@ -5,1 +5,2 @@ /**

export default function dedupe<T = unknown>(theArray: T[]): T[];
//# sourceMappingURL=dedupe.d.ts.map

@@ -9,1 +9,2 @@ import toNumber from './toNumber';

export default _default;
//# sourceMappingURL=index.d.ts.map
export default function (str: string): string;
//# sourceMappingURL=removeRp.d.ts.map

4

dist/currency/removeRp.js
"use strict";
exports.default = _default;
function _default(str) {
exports.default = _callee;
function _callee(str) {
return str.toString().replace(/Rp /g, '');
}
export default function (str: string): string;
//# sourceMappingURL=removeThousandSeparator.d.ts.map
"use strict";
exports.default = _default;
function _default(str) {
exports.default = _callee;
function _callee(str) {
return str.toString().replace(/\./g, '');
}

@@ -18,1 +18,2 @@ /**

export default function toIDR(idr: number, withIDR?: boolean): string;
//# sourceMappingURL=toIDR.d.ts.map

@@ -18,1 +18,2 @@ /**

export default function toNumber(price: string, base?: number): number;
//# sourceMappingURL=toNumber.d.ts.map
{
"name": "@lite-v3/common-helpers",
"version": "0.0.1",
"description": "",
"main": "dist/index.js",
"files": ["dist"],
"version": "0.0.6",
"description": "Public common helpers for Tokopedia Web",
"repository": {

@@ -11,13 +9,18 @@ "type": "git",

},
"license": "ISC",
"author": "WPE",
"main": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"type:check": "tsc -w --pretty --skipLibCheck --noEmit",
"build": "pnpm run clean && pnpm run build:dec && pnpm run build:ts",
"build:dec": "tsc --project tsconfig.json --emitDeclarationOnly",
"build:ts": "swc src --out-dir dist",
"clean": "rimraf dist",
"build:ts": "swc src --out-dir dist",
"build:dec": "tsc ./src/**/*.ts --declaration --allowJs --downlevelIteration --emitDeclarationOnly --outDir dist",
"build": "pnpm run clean && pnpm run build:ts && pnpm run build:dec",
"prepublishOnly": "pnpm run build",
"release": "standard-version -t @lite-v3/common-helpers\\@ --no-verify"
"type:check": "tsc -w --pretty --skipLibCheck --noEmit"
},
"devDependencies": {
"@types/node": "^16.10.9"
"@types/node": "^16.11.1"
},

@@ -29,5 +32,3 @@ "engines": {

"access": "public"
},
"author": "WPE",
"license": "ISC"
}
}
# 🙏 @lite-v3/common-helpers
Public commonn helpers for Tokopedia Web
Public common helpers for Tokopedia Web

@@ -36,2 +36,54 @@ ![By Tokopedia](https://img.shields.io/badge/WPE-Tokopedia-brightgreen.svg?style=flat-square) [![Version][npm-badge]][npm]

├── toNumber
├─ date
├── constant
├── formatDay
├── formatMonthTitle
├── formatWeekdayLong
├── formatWeekdayShort
├── getFirstDayOfWeek
├── getTimeDiffAsObject
├── isValidDate
├── timestampFromNow
├─ env
├── canUseDOM
├── isSafari
├─ 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
├─ string
├── escapeRegExp
├── randomString
├── removeScriptTag
├── replaceDot
├── sanitizeLang
├── slugify
├── stringTemplate
├── titleCase
├─ styles
├── hexToRgba
├── pxToRem
```

@@ -38,0 +90,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc