console-app/AppTest.js
2020-05-09 19:51:43 +02:00

16 lines
398 B
JavaScript

/* eslint-disable no-console */
'use strict';
// eslint-disable-next-line id-match
const { InteractiveOptions } = require ('./dist/lib/index.js');
(async () => {
const reader = new InteractiveOptions ([
{ name: 'str', type: 'string' },
{ name: 'bool', type: 'boolean' },
{ name: 'num', type: 'number' }
]);
await reader.parse ();
console.log (reader.serialize (true));
}) ();