Have ideas to improve npm?Join in the discussion! »

    @sensio/op-sn-image-raw-pixels-hash
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.8-alpha.4 • Public • Published

    @sensio/op-sn-image-raw-pixels-hash

    Blockchain Version bafy2bzacecgmp4enyoywse6enuoqgfpffojhrn7kovryv775xa7mhv6f34qju

    Description

    Calculate content id of the raw pixels

    Links and Repo

    Install

    # install latest version
    yarn add @sensio/op-sn-image-raw-pixels-hash
    
    # or specific version
    yarn add @sensio/op-sn-image-raw-pixels-hash@0.1.0

    Usage

    import snImageRawPixelsHash from '@sensio/op-sn-image-raw-pixels-hash'
    
    const dataAsUintArray = new U8intArray(7)
    const dataAsBuffer = Buffer.from(7)
    await snImageRawPixelsHash([
      { data: dataAsUintArray, decode: () => dataAsBuffer }
    ])

    Contributing

    PRs accepted.

    License

    Longer version is in LICENSE file

    Apache-2.0 © Sensio Group

    Install

    npm i @sensio/op-sn-image-raw-pixels-hash

    DownloadsWeekly Downloads

    4

    Version

    0.4.8-alpha.4

    License

    Apache-2.0

    Unpacked Size

    29 kB

    Total Files

    27

    Last publish

    Collaborators

    • avatar