-
Notifications
You must be signed in to change notification settings - Fork 1
@142vip.utils.Variable.VipJSON
mmdapl edited this page Oct 17, 2025
·
1 revision
API 参考 / @142vip/utils / VipJSON
constVipJSON:object
Defined in: packages/utils/src/pkgs/json.ts:68
处理JSON
clone: <
T>(json) =>T
json克隆复制 参考:https://www.npmjs.com/package/klona
T
T
T
parse: <
T>(originData,defaultData) =>T
解析JSON串
T
undefined | null | string
Partial<T>
T
readFile: (
name,cwd) =>JSONFile
Reads a JSON file and returns the parsed data.
string
string
JSONFile
stringify: (
value,replacer?,space?) =>string
JSON序列化
any
(this, key, value) => any
string | number
string
writeFile: (
file) =>void
Writes the given data to the specified JSON file.
JSONFile
void
- @142vip/axios
- @142vip/changelog
- @142vip/commit-linter
- @142vip/copyright
- @142vip/data-source
- @142vip/eslint-config
- @142vip/fairy-cli
- @142vip/grpc
- @142vip/nest
- @142vip/nest-redis
- @142vip/nest-typeorm
- @142vip/oauth2.0
- @142vip/open-source
- @142vip/redis
- @142vip/release-version
- @142vip/typeorm
- @142vip/utils