Installation
Installs the package and its peer dependency
패키지와 필수 의존성을 설치하세요:
Demo example
DEMO EXAMPLE
데모 예제
DOM Manipulation
Essential DOM element manipulation and query utilities
필수 DOM 요소 조작과 쿼리 유틸리티들
ElementUtils
DOM element manipulation utilities
DOM 요소 조작 유틸리티
OTHER FUNCTIONS기타 함수
loadImage
(src: string): Promise<HTMLImageElement>Load image from URL (Promise)URL에서 이미지 로드 (Promise)loadImage
(src: string, callback: LoadImageCallbackType): voidLoad image from URL (callback)URL에서 이미지 로드 (콜백)loadAudio
(src: string): Promise<HTMLAudioElement>Load audio from URL (Promise)URL에서 오디오 로드 (Promise)loadAudio
(src: string, callback: LoadAudioCallbackType): voidLoad audio from URL (callback)URL에서 오디오 로드 (콜백)replaceWith
(targetElement: Element, replaceElement: Element): voidReplace element요소 교체nodeList
(documentFragment: DocumentFragment): Node[]Get node list from DocumentFragmentDocumentFragment에서 노드 리스트 가져오기cloneNodeList
(documentFragment: DocumentFragment): Node[]Clone node list from DocumentFragmentDocumentFragment에서 노드 리스트 복제querySelectorAll
(element: Element | {start, end}, selector: string): Element[]Query all elements with selector셀렉터로 모든 요소 쿼리selectorElements
(selector: string, element?: Element | Document): Element[]Select elements by selector셀렉터로 요소 선택selectorNodes
(selector: string, element?: Element | Document): Node[]Select nodes by selector셀렉터로 노드 선택removeAttribute
(element: Element, attrs: string[]): voidRemove multiple attributes여러 속성 제거setAttribute
(element: Element, attrs: string[]): voidSet multiple attributes여러 속성 설정setAttributeAttr
(element: Element, attrs: Attr[]): voidSet attributes from Attr arrayAttr 배열로 속성 설정getAttributeToObject
(element: Element): anyGet all attributes as object모든 속성을 객체로 가져오기getStyleToObject
(element: HTMLElement): anyGet all styles as object모든 스타일을 객체로 가져오기
NodeUtils
Node manipulation utilities
노드 조작 유틸리티
OTHER FUNCTIONS기타 함수
removeAllChildNode
(node)Remove all child nodes모든 자식 노드 제거findNodes
(rootNode, filter)Find nodes with filter필터로 노드 찾기
Browser Storage
Browser storage and data persistence utilities
브라우저 저장소와 데이터 지속성 유틸리티들
StorageUtils
LocalStorage and SessionStorage utilities
LocalStorage와 SessionStorage 유틸리티
OTHER FUNCTIONS기타 함수
setLocalStorageItem
(k: string, v: string | any, window: Window): voidSet localStorage item (auto JSON.stringify for objects)localStorage 항목 설정 (객체는 자동 JSON.stringify)setSessionStorageItem
(k: string, v: string | any, window: Window): voidSet sessionStorage item (auto JSON.stringify for objects)sessionStorage 항목 설정 (객체는 자동 JSON.stringify)getLocalStorageItem
(k: string, window: Window): string | nullGet localStorage itemlocalStorage 항목 가져오기getSessionStorageItem
(k: string, window: Window): string | nullGet sessionStorage itemsessionStorage 항목 가져오기cutLocalStorageItem
(k: string, window: Window): string | nullGet and remove localStorage itemlocalStorage 항목 가져오고 제거cutSessionStorageItem
(k: string, window: Window): string | nullGet and remove sessionStorage itemsessionStorage 항목 가져오고 제거removeLocalStorageItem
(k: string, window: Window): voidRemove localStorage itemlocalStorage 항목 제거removeSessionStorageItem
(k: string, window: Window): voidRemove sessionStorage itemsessionStorage 항목 제거getLocalStorageJsonItem
<T>(k: string, window: Window): T | undefinedGet and parse JSON from localStoragelocalStorage에서 JSON 가져오고 파싱getSessionStorageJsonItem
<T>(k: string, window: Window): T | undefinedGet and parse JSON from sessionStoragesessionStorage에서 JSON 가져오고 파싱cutLocalStorageJsonItem
<T>(k: string, window: Window): T | undefinedGet JSON from localStorage and removelocalStorage에서 JSON 가져오고 제거cutSessionStorageJsonItem
<T>(k: string, window: Window): T | undefinedGet JSON from sessionStorage and removesessionStorage에서 JSON 가져오고 제거clearLocalStorage
(window: Window): voidClear all localStorage모든 localStorage 지우기clearSessionStorage
(window: Window): voidClear all sessionStorage모든 sessionStorage 지우기
CookieUtils
Cookie management utilities
쿠키 관리 유틸리티
OTHER FUNCTIONS기타 함수
names
(doc?)Get all cookie names모든 쿠키 이름 가져오기make
(name, value, option?)Make cookie string쿠키 문자열 만들기
Browser APIs
Browser window and platform APIs
브라우저 윈도우와 플랫폼 API들
ClipBoardUtils
Clipboard read/write operations
클립보드 읽기/쓰기 작업
OTHER FUNCTIONS기타 함수
read
(window)Read clipboard items클립보드 항목 읽기write
(data, clipboard?)Write clipboard items클립보드 항목 쓰기
WindowUtils
Window event handling utilities
윈도우 이벤트 처리 유틸리티
OTHER FUNCTIONS기타 함수
eventObservable
<K>(window: Window, type: K, options?): Observable<WindowEventMap[K]>Create Observable from Window eventsWindow 이벤트에서 Observable 생성
Data Conversion
Web-specific data format conversion utilities
웹 전용 데이터 형식 변환 유틸리티
ConvertUtils
Image and data conversion utilities
이미지와 데이터 변환 유틸리티
OTHER FUNCTIONS기타 함수
coreConvertUtils
: CoreConverUtilsRe-export of core conversion utilities코어 변환 유틸리티 재내보내기toObjectUrl
(data: File | Blob): stringConvert File or Blob to Object URLFile 또는 Blob을 Object URL로 변환isImageConvertConfig
(data: any): booleanType guard for ImageConvertConfigImageConvertConfig 타입 가드toFile
(imageBitmapOrCanvas, config: {filename, type?, quality?}): Promise<File>Convert image to File이미지를 File로 변환toImageBitmap
(target: File | Blob | HTMLImageElement | Canvas): Promise<ImageBitmap>Convert to ImageBitmapImageBitmap으로 변환toBlobURL
(imageBitmapOrCanvas, config: {type?, quality?}): Promise<string>Convert to Blob URLBlob URL로 변환
Utilities
Additional web development utilities
추가 웹 개발 유틸리티들
DownloadUtils
File download utilities
파일 다운로드 유틸리티
OTHER FUNCTIONS기타 함수
download
(window: Window, url: string, filename?: string): voidDownload file from URLURL에서 파일 다운로드csvDownload
<T>(window: Window, datas: T[], config: {includeHeader?, headers}): voidDownload data as CSV file데이터를 CSV 파일로 다운로드
EventUtils
Event handling with Observable pattern
Observable 패턴으로 이벤트 처리
OTHER FUNCTIONS기타 함수
htmlElementEventObservable
<K>(element: HTMLElement | Document, type: K, options?): Observable<Event>Create Observable from HTMLElement or Document eventsHTMLElement 또는 Document 이벤트에서 Observable 생성
ValidUtils
Browser and environment validation utilities
브라우저와 환경 검증 유틸리티
OTHER FUNCTIONS기타 함수
coreValidUtils
: CoreValidUtilsRe-export of core validation utilities코어 검증 유틸리티 재내보내기hasParentWindow
(win: Window): booleanCheck if window has parent window윈도우에 부모 윈도우가 있는지 확인isSocialNetworkServiceInappBrowser
(): booleanCheck if SNS in-app browser (Facebook, Instagram, etc.)SNS 인앱 브라우저 확인 (Facebook, Instagram 등)isWkWebview
(): booleanCheck if iOS WKWebViewiOS WKWebView 확인isiPhone
(): booleanCheck if iPhone deviceiPhone 기기 확인isAndroidWebview
(): booleanCheck if Android WebViewAndroid WebView 확인
StyleCssUtils
CSS manipulation and style utilities
CSS 조작과 스타일 유틸리티
OTHER FUNCTIONS기타 함수
getPropertyEntries
(config)Get all CSS property entries모든 CSS 속성 항목 가져오기
AnimationFrameUtils
Animation frame utilities with FPS control
FPS 제어를 포함한 애니메이션 프레임 유틸리티
OTHER FUNCTIONS기타 함수
fps
(params: FpsConfigParamType, callback: (value) => void): SubscriptionExecute callback at specified FPS with subscription지정된 FPS로 콜백 실행 (구독 반환)dividePerFpsObservable
({fps, window}): Observable<number>Create Observable that emits at specified FPS지정된 FPS로 방출하는 Observable 생성
DocumentUtils
Document manipulation utilities
Document 조작 유틸리티
OTHER FUNCTIONS기타 함수
querySelectorAllByAttributeName
(document: Document | Element, attributeName: string): {element, value}[]Query all elements by attribute name속성 이름으로 모든 요소 쿼리eventObservable
<K>(document: Document, type: K, options?): Observable<Event>Create Observable from Document eventsDocument 이벤트에서 Observable 생성
LocationUtils
URL and location utilities
URL과 위치 유틸리티
OTHER FUNCTIONS기타 함수
hash
(window: Window): stringGet hash without # symbol# 기호 없이 해시 가져오기hashPath
(window: Window): stringGet hash path without query string쿼리 문자열 없이 해시 경로 가져오기hashSearch
(window: Window): stringGet hash query string해시 쿼리 문자열 가져오기hashQueryParams
(window: Window): Map<string, string>Get hash query params as Map해시 쿼리 파라미터를 Map으로 가져오기hashQueryParamsObject
(window: Window): {[key: string]: string}Get hash query params as object해시 쿼리 파라미터를 객체로 가져오기path
(window: Window): stringGet pathname경로명 가져오기pathQueryParams
(window: Window): Map<string, string>Get path query params as Map경로 쿼리 파라미터를 Map으로 가져오기pathQueryParamsObject
(window: Window): {[key: string]: string}Get path query params as object경로 쿼리 파라미터를 객체로 가져오기
ScriptUtils
Dynamic script loading utilities
동적 스크립트 로딩 유틸리티
OTHER FUNCTIONS기타 함수
loadScript
(src: string): Promise<void>Dynamically load external script외부 스크립트 동적으로 로드
CanvasUtils
Canvas manipulation and drawing utilities
Canvas 조작 및 그리기 유틸리티
OTHER FUNCTIONS기타 함수
Context2D.resetTransform
(context: CanvasRenderingContext2D): voidReset canvas transformation matrix캔버스 변환 행렬 초기화fontSize
(ctx, config: {text, maxWidth, maxHeight, fontOption?}): numberCalculate optimal font size for text텍스트에 최적인 폰트 크기 계산textMetrics
(context: CanvasRenderingContext2D, text: string): TextMetricsGet text metrics텍스트 측정값 가져오기
ImageUtils
Image manipulation utilities
이미지 조작 유틸리티
HttpDomParserFetcher
HTTP fetcher with DOM parsing capabilities
DOM 파싱 기능이 있는 HTTP fetcher