一键导入
ibenvandeveire-utils
Framework-agnostic helpers from @ibenvandeveire/utils. Use when merging partial objects and omitting undefined properties with the merge util.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Framework-agnostic helpers from @ibenvandeveire/utils. Use when merging partial objects and omitting undefined properties with the merge util.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Template directives ngxIsAuthenticated, ngxHasFeature, ngxHasPermission and impure pipes from @ibenvandeveire/ngx-authentication.
Route guards from @ibenvandeveire/ngx-authentication: NgxIsAuthenticatedGuard, NgxHasFeatureGuard, NgxHasPermissionGuard. Use with NgxAuthenticatedRoute data.
NgxAuthenticatedHttpClient and provideNgxAuthenticationConfiguration httpClientConfiguration. Use for base URL, withCredentials, authenticated interceptors, and download helper.
NgxAuthenticationAbstractService state: user$, session$, metadata$, hasFeature, hasPermission, global features. Use after provideNgxAuthenticationConfiguration.
Bootstrap @ibenvandeveire/ngx-authentication with provideNgxAuthenticationConfiguration and NgxAuthenticationAbstractService. Use when wiring sign-in/out and auth types.
Angular wrapper for CookieConsent V3 and cookie helpers from @ibenvandeveire/ngx-cookies. Use for setupCookiesHandler, consent observables, set/get/remove cookie, or *hasCookie directive.
| name | ibenvandeveire-utils |
| description | Framework-agnostic helpers from @ibenvandeveire/utils. Use when merging partial objects and omitting undefined properties with the merge util. |
Framework-agnostic TypeScript utilities. Install: npm install @ibenvandeveire/utils.
Merges defined values into a start object. Additional fields are tuples [key, value]; undefined values are omitted.
import { merge } from '@ibenvandeveire/utils';
merge<Example>(
{ id: 'test' },
['books', books],
['user', user],
['metaData', metaData], // undefined → not in result
);
Use when building config/DTO objects from optional partials without spreading undefined.