nogi-api
v0.0.1
Published
🌸 nogi api.
Downloads
1
Readme
nogi
🌸 nogi api.
Usage
import nogi from 'nogi-api'
const members = nogi.getAllMember()
const members = nogi.getAllMember('merge')
const members = nogi.getAllMember(['name'])
const members = nogi.getAllMember('use', ['name', 'age'])
const members = nogi.getAllMember({ type: 'default', filter: ['name'] })
// MergeType: 'default': 预置 | 'use': 用户传入 | 'merge': 预置 + 用户 | 'all': 全部字段
const use = nogi.getMember('asuka') // nike name
const use = nogi.getMember('saito asuka') // full name
const use = nogi.getMember('shiori', 'all') // filter
const use = nogi.getMember('shiori', 'use', ['id', 'name', 'age'])
const use = nogi.getMember({ unique: 'nagi', type: 'merge', filter: ['active']})
License
MIT License © 2022 Akashi Sai