Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ jobs:
- name: pnpm 설치
run: npm install -g pnpm
- run: pnpm install
- run: pnpm test -- --reporter=junit --outputFile=vitest-report.xml
- run: pnpm coverage -- package/**/*.test.ts
- name: 테스트 결과 PR에 코멘트 추가하기
uses: test-summary/action@v2
with:
paths: /home/runner/work/utils/utils/vitest-report.xml
github-token: ${{ secrets.PR_WRITE_TOKEN }}
if: always()
- name: 테스트 커버리지 결과 PR에 코멘트 추가하기
uses: davelosert/vitest-coverage-report-action@v2
with:
Expand Down
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# @dori/utils
# corekit

A comprehensive collection of TypeScript utility functions for modern web development.

## Features

- 🛠️ **Comprehensive**: String, object, cookie, number, and validation utilities
- 🛠️ **Comprehensive**: String, object, cookie, number, validation, and common utilities
- 📦 **Tree-shakable**: Import only what you need
- 🔒 **Type-safe**: Full TypeScript support with type definitions
- ⚡ **Lightweight**: Minimal dependencies and optimized for performance
Expand All @@ -13,11 +13,11 @@ A comprehensive collection of TypeScript utility functions for modern web develo
## Installation

```bash
npm install @dori/utils
npm install corekit
# or
pnpm add @dori/utils
pnpm add corekit
# or
yarn add @dori/utils
yarn add corekit
```

## Usage
Expand All @@ -29,7 +29,8 @@ import {
cookieUtil,
numberUtil,
validationUtil,
} from "@dori/utils";
commonUtil,
} from "corekit";

// String utilities
const escaped = stringUtil.escapeHtml("<div>Hello</div>");
Expand All @@ -47,6 +48,10 @@ const difference = numberUtil.subtract(10, 3); // 7
const isValid = validationUtil.checkEmail("user@example.com"); // true
const isHttpUrl = validationUtil.checkHttpUrl("https://example.com"); // true

// Common utilities
const empty = commonUtil.isEmpty(""); // true
const notEmpty = commonUtil.isEmpty("hello"); // false

// Cookie utilities
cookieUtil.setCookie("theme", "dark");
const theme = cookieUtil.getCookie("theme");
Expand Down Expand Up @@ -74,6 +79,10 @@ const theme = cookieUtil.getCookie("theme");
- `checkEmail(email: string): boolean` - Validates email format
- `checkHttpUrl(url: string): boolean` - Validates HTTP/HTTPS URL format

### CommonUtil

- `isEmpty(value: unknown): boolean` - Checks if a value is empty (null, undefined, "", 0, [], {}, empty Set/Map, NaN, or invalid Date)

### CookieUtil

- `setCookie(name: string, value: string, options?: object): void` - Sets a cookie
Expand Down
Binary file removed dori-utils-0.0.1.tgz
Binary file not shown.
43 changes: 33 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,53 @@
{
"name": "@dori/utils",
"name": "corekit",
"version": "0.0.1",
"main": "dist/bundle/dori-utils.js",
"description": "A lightweight and modern utility toolkit for JavaScript and TypeScript. CoreKit provides essential functions for strings, arrays, objects, and more, designed for simplicity and productivity.",
"keywords": [
"javascript",
"typescript",
"utilities",
"utility-functions",
"toolkit",
"helper",
"lodash",
"es-toolkit",
"string-utils",
"array-utils",
"object-utils",
"functional",
"corekit",
"esm",
"cjs"
],
"license": "MIT",
"type": "module",
"main": "dist/bundle/corekit.js",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/bundle/dori-utils.cjs",
"import": "./dist/bundle/dori-utils.js"
"require": "./dist/bundle/corekit.cjs",
"import": "./dist/bundle/corekit.js"
}
},
"license": "MIT",
"type": "module",
"scripts": {
"build": "tsc && vite build",
"preview": "vite preview",
"test": "vitest",
"coverage": "vitest run --coverage"
},
"repository": {
"type": "git",
"url": "https://github.com/klmhyeonwoo/corekit"
},
"bugs": {
"url": "https://github.com/klmhyeonwoo/corekit/issues"
},
"homepage": "https://github.com/klmhyeonwoo/corekit#readme",
"devDependencies": {
"@types/node": "^24.3.0",
"@vitest/coverage-v8": "^3.2.4",
"typescript": "~5.8.3",
"vite": "^7.1.2",
"vitest": "^3.2.4"
},
"dependencies": {
"@dori/utils": "file:dori-utils-0.0.1.tgz",
"@vitest/coverage-v8": "^3.2.4"
}
Copy link

Copilot AI Aug 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependencies section was completely removed, but the devDependencies section still references packages that might be needed as runtime dependencies. Verify that all required dependencies are properly categorized.

Copilot uses AI. Check for mistakes.
}
16 changes: 3 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default defineConfig({
outDir: "dist/bundle",
lib: {
entry: "package/index.ts",
name: "DoriUtils",
fileName: "dori-utils",
name: "corekit",
fileName: "corekit",
},
},
});
37 changes: 0 additions & 37 deletions vitest-report.xml

This file was deleted.