1.0.17 • Published 10 months ago

barcoding v1.0.17

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months 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

10 months ago

1.0.16

10 months ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago