Neat Pidgeon Manure

    xarray-loader
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.3 • Public • Published

    xarray dataset Loader

    Only work in browsers which support ES6+

    Usage

    import { Dataset } from 'xarray-loader'
    import raw_ds from './dataset.json'
     
    let ds = new Dataset(raw_ds)
     
    Array.from(ds.all) // load all data
     
    Array.from(ds.sel(v => v.Value === 'Some Value')) // filter data

    Every datum is in form of

    {
        key0: 'value0',
        key1: 'value1',
        key2: 'value2',
        ...
    }

    Example

    https://beta.observablehq.com/@buckle2000/world-governance-index

    License

    MIT

    TODO

    Need optimization

    Install

    npm i xarray-loader

    DownloadsWeekly Downloads

    3

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    2.03 MB

    Total Files

    19

    Last publish

    Collaborators

    • buckle2000