1.0.17 • Published 1 year ago

barcoding v1.0.17

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Barcoding

Encode chart data to barcode to lower size. Data has three type: identifier, sortable, filterable

// rawData
[
  {
    identifier: {id: 1, name:"Terry"},
    sortable: {
        info: {
            age: 22, height:179
        },
        score: {
            math: 98, science: 88
        }
    },
    filterable: {
      inBag: ["book", "pencil", "pen", "ruler"],
      subscribes: ["MrBeast", "BTS"]
    }
  },
...
]

// encodedData
keys: {
    sortable: {
        info: ["age", "height"],
        score: ["math", "science"]
    },
    filterable: {
        inBag: ["book", "pencil", "pen", "ruler"],
        subscribes: ["MrBeast", "BTS"]
    }
}
enData: [
    {
        identifier: {id: 1, name:"Terry"},
        sortable: {
            info: [22, 179],
            score: [98, 88]
        },
        filterable: {
            inBag: [11], // "1111"
            subscribes: [3], // "11"
        }
    }
]

Can filter and sort before decode.

Installation

npm install barcoding
1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago