@kano/kbc-utils

2.2.4 • Public • Published

kbc-utils

Utilities modules for boilerplate apps.

Usage

import { name_of_module } from '@kano/kbc-utils'

Current Utils

  • Files

    • ExportFile

      Used for exporting different app files e.g. app.kcode or app.draw. Params include, app to be JSON.stringified to create a Blob, fileName the default file name including extension e.g. my-app.kcode, and an optional callback cb for once the export has finished.

    • ImportFile

      Used for importing different app files e.g. app.kcode or app.draw. Params include a callback cb which passes the imported file after it's loaded, and utilised in the mini app.

    • CheckBrowserCompatibility

      Checks if the browser Window has, File, FileReader, FileList and Blob needed to import and export. Params include success and fail callbacks.

  • Images

    • getBlobFromImage

    • blobToDataURL

Tracking

By Component

Component (location) Function Event / Error Name Extra Info
images GetBlobFromImage Error name: fetch_blob_from_image { stack: error in fetching blob from image, message: :error

Readme

Keywords

none

Package Sidebar

Install

npm i @kano/kbc-utils

Weekly Downloads

0

Version

2.2.4

License

ISC

Unpacked Size

27.7 kB

Total Files

18

Last publish

Collaborators

  • thefijimonster
  • dianlin61
  • jacobmorgan99
  • alexnklein
  • ellenw3lsh
  • camuskano
  • alexfiennes
  • kanocomputing
  • jamie_old_plantain