Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 599 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 599 Bytes

aia-kit

npm

Read, Parse, Edit, Write AIA/AIX/AIS files.

Installation

npm install aia-kit

Usage

import { AIAReader } from 'aia-kit'

const aiaFile = await fs.readFile('test/fixtures/Test.aia')
const aiaFileBlob = new Blob([aiaFile])

const project = await AIAReader.read(aiaFileBlob)

expect(project).toBeDefined()

expect(project.name).toBe('Test')

expect(project.screens.length).toBe(1)
expect(project.screens[0].name).toBe('Screen1')

Code taken from test/aia.test.js


Copyright (c) 2023 Junnovate, LLC