open-index/open-npm huggingface dataset:
npm package: @giancarl021/text-loader
Description: A simple CLI-Interface that allows you to pop-up a Browser window with the text you wrote
Author: giancarl021
Latest version: 1.0.0

# Text-Loader
**A simple CLI-Interface that allows you to pop-up a Browser window with the text you wrote**

### Installation

##### NPM:
``npm install --global @giancarl021/text-loader``

#### Yarn:
``yarn global add @giancarl021/text-loader``

### Examples

#### Simple text

``text-loader -t "Simple Text"``

This will pop-up a window on your browser with text below:
![](docs/img/Simple-Example.png)

#### Simple Highlight

``text-loader -t "Simple {Highlight}"``

This will pop-up a window on your browser with the text below:

![](docs/img/Simple-Highlight.png)

#### Double Highlight

``text-loader -t "Double {{Highlight}}"`` 

This will pop-up a window on your browser with the text below:
![](docs/img/Double-Highlight.png)

### Flags

``-t|--text`` The text that will be loaded in the page. Default went to ``No text defined``
``-e|--editable`` If the text will be editable on the web page

### Customize Web Page

If you want to customize the CSS or JavaScript of the page, you can by writing ``text-loader config``. This will open the folder where the page is loaded.
npm package: @giancarl021/tokenizer
Description: Simple tokenizer for a simple "language"
Author: Giancarlo Fontela da Luz
Latest version: 0.1.1

# Tokenizer

### Installation

npm:

```bash
npm install --save @giancarl021/tokenizer
```

Yarn:

```bash
yarn add @giancarl021/tokenizer
```

### Usage: ``parseCode``

#### Input

```txt
config:start
    allow 1, 2, 3
    deny 4, 5, 6
config:end
start
    command1 true, false, 'true', 'false'
    command2 text, broken, 'text, but not broken'
    # command3 param1, param2, param3
    command4 123, 123.34, '123.34', 192.168.0.1
    command5 null, undefined, 'null', 'undefined'
end
```

#### Code

```javascript
const tokenizer = require('@giancarl021/tokenizer');

const input = '...';

const output = tokenizer.parseCode(input);

console.log(output);
```

#### Output

```javascript
[
  { operator: 'config:start', operands: [] },
  { operator: 'allow', operands: [ 1, 2, 3 ] },
  { operator: 'deny', operands: [ 4, 5, 6 ] },
  { operator: 'config:end', operands: [] },
  { operator: 'start', operands: [] },
  { operator: 'command1', operands: [ true, false, 'true', 'false' ] },
  { operator: 'command2', operands: [ 'text', 'broken', 'text, but not broken' ] },
  { operator: 'command4', operands: [ 123, 123.34, '123.34', '192.168.0.1' ] },
  { operator: 'command5', operands: [ null, undefined, 'null', 'undefined' ] },
  { operator: 'end', operands: [] }
]
```

### Usage: ``parseLine``

#### Input

```txt
add 1, 2, 3, 4.5
```

#### Code

```javascript
const tokenizer = require('@giancarl021/tokenizer');

const input = '...';

const output = tokenizer.parseLine(input);

console.log(output);
```

#### Output

```javascript
{ operator: 'add', operands: [ 1, 2, 3, 4.5 ] }
```