diff --git a/examples/advanced.js b/examples/advanced.js index 7f7f76a..518e795 100644 --- a/examples/advanced.js +++ b/examples/advanced.js @@ -1,8 +1,8 @@ "use strict"; -const cursor = require('kittik-cursor').default.create().resetTTY(); -const Rectangle = require('kittik-shape-rectangle').default; -const Slide = require('../lib/Slide').default; +const cursor = require('kittik-cursor').create().resetTTY(); +const Rectangle = require('kittik-shape-rectangle'); +const Slide = require('../lib/Slide'); const AVAILABLE_DIRECTIONS = ['inUp', 'inDown', 'inLeft', 'inRight']; const shapes = [ Rectangle.create({background: 'dark_blue', x: 'left', y: 'top', text: 'Shape 1'}), diff --git a/examples/simple.js b/examples/simple.js index c04055b..ad0e533 100644 --- a/examples/simple.js +++ b/examples/simple.js @@ -1,8 +1,8 @@ "use strict"; -const cursor = require('kittik-cursor').default.create().resetTTY(); -const Slide = require('../lib/Slide').default; -const shape = require('kittik-shape-rectangle').default.create({ +const cursor = require('kittik-cursor').create().resetTTY(); +const Slide = require('../lib/Slide'); +const shape = require('kittik-shape-rectangle').create({ text: 'Good news, everybody!', x: 'center', background: 'white',