1.0.4 • Published 4 years ago

data-reformat v1.0.4

Weekly downloads
6
License
ISC
Repository
github
Last release
4 years ago

DC

把一套 json 转成任意的另一套 json, 简单, 灵活.

特性

  • key 到 key

  • function 到 key

  • jsonpath 到 key
  • array 到 key
  • 反向支持(用作请求数据)
  • mock

考虑支持

  • 命名规范互转: 下划线、 小驼峰、 大驼峰
  • 生成 ts

配置

name说明类型可选值默认值
unknownField为配置字段的处理方式string"include" / "exclude""exclude"
  • 私有属性前缀

getData 选项

name说明类型可选值默认值
_key返回数据的 keystring--
_formatter格式化内容string--
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago