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

    @dictadata/xlsx-junction

    1.7.3 • Public • Published

    @dictadata/xlsx-junction

    A storage junction for Excel .xlsx and .xls files.

    Installation

    npm i @dictadata/xlsx-junction

    Using the Plugin

    Register the junction when initializing the app.

    const storage = require("@dictadata/storage-junctions");
    const XlsxJunction = require("@dictadata/xlsx-junction");
    
    storage.use("xlsx", XlsxJunction);
    storage.use('xls', XlsxJunction);
    storage.use('ods', XlsxJunction);

    Then a junction can be created as needed in the app using an SMT definition.

    const storage = require("@dictadata/storage-junctions");
    
    var junction = storage.activate({
      smt: {
        model:"xlsx",
        locus: "filesystem:folderpath",
        schema: "filename",
        key: "*"
      }
    });

    Supported filesystems

    Supported filesystem are those built into the storage-junctions library. Currently the supported filesystems types are:

    • file - local file system
    • ftp - FTP server
    • http - HTTP server
    • s3 - AWS S3 bucket

    Project Dependencies


    This storage-junction is powered by SheetsJS js-xlsx library.

    Install

    npm i @dictadata/xlsx-junction

    DownloadsWeekly Downloads

    4

    Version

    1.7.3

    License

    MIT

    Unpacked Size

    89.5 kB

    Total Files

    39

    Last publish

    Collaborators

    • avatar