<commit_before>"use strict";

const Text = require('../lib/Text');
const cursor = require('kittik-cursor').create().resetTTY();

Text.create({text: 'Hello, there!', x: 'center', y: 5, underlined: true}).render(cursor);
Text.create({text: 'It is a simple text shape', x: 'center', y: 7, bold: true}).render(cursor);
Text.create({text: 'If you see this, it works', x: 'center', y: 9, reverse: true}).render(cursor);
Text.create({text: 'Also\nyou\ncan\nwrite\nmulti-lines', x: 'center', align: 'right', y: 15, dim: true}).render(cursor);

cursor.flush();<commit_msg>docs(shape): Update examples<commit_after>"use strict";

const Text = require('../lib/Text');
const cursor = require('kittik-cursor').create().reset();

Text.create(cursor, {text: 'Hello, there!', x: 'center', y: 5, underlined: true}).render();
Text.create(cursor, {text: 'It is a simple text shape', x: 'center', y: 7, bold: true}).render();
Text.create(cursor, {text: 'If you see this, it works', x: 'center', y: 9, reverse: true}).render();
Text.create(cursor, {text: 'You\ncan\nwrite\nmulti-lines', x: 'center', align: 'right', y: 15, dim: true}).render();

cursor.flush();
{'fraction_non_alphanumeric': 0.22456140350877193, 'fraction_numerical': 0.008771929824561403, 'mean_word_length': 5.9573170731707314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3579188', 'n_tokens_mistral': 396, 'n_tokens_neox': 384, 'n_words': 113}