NanookNanook
  • [ DOCS ]
  • [ API ]
  • [ BLOG ]
  • [ GITHUB ]

›Modules

Quickstart

  • The 5 minute Quickstart

Tutorials

  • Overview
  • Create an equivalence class table
  • Transform into data generator
  • Create data generator
  • Create writer
  • Create filter processor

Guides

  • Nanook Table Overview
  • Equivalence class table

    • Overview
    • Section

    Matrix table

    • Overview

    Generator commands

    • Static Data
    • Generator
    • References

    Advanced

    • Instance IDs

Modules

  • Model
  • Logger
  • File Processor
  • Data Generator
  • Writer

File Processor

The file processor works on the data imported by an importer to create a table model. For the file processor, it is transparent which importer was used. The importer must implement the importer interface.

ImporterInterface

The importer is responsible for loading data from a spreadsheet. This interface must be implemented to use the custom importer. The Importer is used by a parser to read the files and create the table model. The importer does not care about the content of the spreadsheet - it's just an abstract spreadsheet reader.

Functions

/**
 * Opens a file and loads it. This could be spreadsheet or whatever
 * file.
 * @param fileName {string} The file to open
 */
async loadFile(fileName) {}
/**
 * Returns all the loaded sheet names
 * @return sheets {array} A list of sheet names
 */
sheetNames() {}
/**
 * Returns the Cell value from the sheet with the given name
 * @param sheetName {string} The name of the sheet
 * @param column {number} The column number start with '0'
 * @param row {number} The row number start with '0'
 * @return value {string} The Cell value
 */
cellValue(sheetName, column, row) {}
/**
 * Deletes all the loaded data in the importer
 */
clear() {}

ParserInterface

For each table type, a specific parser is needed. All parsers must implement this interface.

Functions

/**
 * Parser the sheet with the given name
 * @param sheetName {string} The name of the sheet
 * @param importer {object} The importer
 * @return tableModel {object} The created table model
 */
async parse(sheetName, importer) {}
  • This module provides the following parsers

    • ParserDecision
      Parses decision tables.

    • ParserMatrix
      Parses matrix tables.

    • ParserSpecification
      Parses specification tables and returns decisionTable models.

← LoggerData Generator →
  • ImporterInterface
    • Functions
  • ParserInterface
    • Functions
Nanook
[ DOCS ] Tutorials Guide
[ MORE ] About Imprint Privacy Policy GitHub Manage Cookies
© 2018-2026 NANOOK.XHUB.IO — An Open Source Project by BeeBack UG.
[ COOKIE PREFERENCES ]

We use cookies to analyze site usage and improve your experience. You can choose which cookies to allow below. See our Privacy Policy for details.

ESSENTIALAlways active
Provider nanook.xhub.io (First Party)
Cookies nanook-theme — Stores your theme preference (CRT/INK)
Duration Persistent (localStorage)
Purpose Remember your display preferences across visits
ANALYTICS
Provider Google LLC (Google Analytics 4)
Cookies _ga, _ga_PMNJR2G9ZH — Distinguish unique visitors and sessions
Duration _ga: 2 years, _ga_*: 2 years
Purpose Measure site usage, page views, and traffic sources to improve the site. IP addresses are anonymized.
Privacy Google Privacy Policy