Newton's Principia Mathematica

    describer

    1.2.4 • Public • Published

    Describer

    用于描述一个对象的库

    对象解构的快速描述 —— ObjectDescriber

    import { ObjectDescriber } from "describer";
    
    const result = ObjectDescriber(YourObj);
    
    console.log(result);

    返回一个描述对象,描述对象包含了对 YourObj 的描述

    记录对象更改过程的库 —— GitObject

    import { GitObject } from "describer";
    
    const gitObject = new GitObject(initObj);
    gitObject.add("data.list.tlist", 8080); // 1
    gitObject.add("data.list.tlist", 9999); // 2
    gitObject.delete("data.list.vlist"); // 3
    gitObject.review(2); // 转换对象到 2 这个步骤
    console.log(gitObject.get("data.list.vlist"));
    console.log(gitObject.now); // 这个是现有的对象

    Keywords

    none

    Install

    npm i describer

    DownloadsWeekly Downloads

    20

    Version

    1.2.4

    License

    Apache-2.0

    Unpacked Size

    59.9 kB

    Total Files

    17

    Last publish

    Collaborators

    • konghayao