# aex_lib

> brkeejp's custom library

Latest version **0.1.10** (published 2019-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install aex_lib
pnpm add aex_lib
yarn add aex_lib
bun add aex_lib
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.10 |
| Published | 2019-04-03 |
| First published | 2019-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Berk ege Çakıl |
| Maintainers | brkeejp |
| Keywords | aex, literals, file |

## Links

- npm: https://www.npmjs.com/package/aex_lib
- npm.io page: https://npm.io/package/aex_lib

## Dependencies (1)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.1.10 (latest) — 2019-04-03
- 0.1.9 — 2019-04-03
- 0.1.8 — 2019-04-02
- 0.1.7 — 2019-04-02
- 0.1.6 — 2019-04-02
- 0.1.5 — 2019-04-02
- 0.1.3 — 2019-04-02
- 0.1.0 — 2019-04-02

## README

# AEox's Library

## Description
aex_lib is created and *accidentally* uploaded library by brkeejp.

Library currently under development (Well in the end *accidentally* uploaded :). That mean updated frequently.
I created this library because I want to create custom server & applications with customized codes.
I strongly suggest you don't use this library. I'm not engineer or something, I'm just starter. (But this your decision).
My current goal expand my library and upload with this way everyone can be use. Anyway you can found details below...


## Installation

```bash
$ npm install aex_lib
```


## Usage

### function: TemplateString()
This function read any string as literals.

#### Example
Input File: app.js
```js
const aexlib = require("aex_lib");

var Text = new aexlib.TemplateString("Bye ${this.name}!");
Text.fill({name: "Others"});

console.log(Text.render());
```

Output: console
```plain
Hello Others!
```

##### Or simply
Input File: app.js
```js
const aexlib = require("aex_lib");

console.log(new aexlib.TemplateString("Hello visitor! This text generated with ${this.generator}.", {
  generator: "aex_lib"
}).render());
```

Output: console
```plain
Hello visitor! This text generated with aex_lib.
```

### function: TemplateFile
This function read plain text, html, json, or any kind of text files with literals.

#### Example
Input File: app.js
```js
const aexlib = require("aex_lib");

var Doc = new aexlib.TemplateFile("text.txt");
Doc.fill({name: "World"});

console.log(Doc.render());
```

Input File: text.txt
```plain
Hello ${this.name}! Time is now ${new Date().toString()}.
```
Output: console
```plain
Hello World! Time is now Tue Apr 02 2019 16:09:25 GMT+0300 (GMT+03:00).
```

#### Countion
if *path* start with "`/`" then command uses root directory
if *path* start with "`~`" then command uses home directory
if *path* start with "`./`" or "`../`" then command uses current directory
if *path* start with *letter* then command uses main application directory


## Contact
For any bug, suggestion or maybe just chatting you can always write me mail.
brkee.jp@gmail.com

---
_Source: https://npm.io/package/aex_lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
