0.0.8 • Published 4 months ago

@nondef/ac-tools v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Test & Deploy codecov npm version

Axiell Data Tools

This small library was built to parse and modify Adlib tagged files for import into Axiell applications through the Axiell Designer

It is provided as is, and in no way endorsed or maintained by Axiell ALM

Usage

Sample workflow to import a folder of CSVs and render them as a tagged Adlib file.

const actools = require("@nondef/ac-tools")
const fs = require('fs');

const dataFolder = './datain/';
const import_set = new actools.AdlibRecordSet("importset")

fs.readdirSync(dataFolder).forEach(file => {
    //loads the CSV as a set using the first row for column heading
    import_set.loadSetFromCSV(`${dataFolder}${file}`, null, ";");
});

import_set.set.forEach((rec) => {
  //some record manipulations
})


fs.writeFileSync("./dataout/importset.dat", import_set.jsonToAdlibDat(["IN", "bt"]))

For details see the documentation

Building

npm install     # Installs dependencies for building the project
npm build     # builds to ./lib
npm doccument # builds the documentation to /docs
0.0.8

4 months ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago