# ti-lang

> tiLang is a Language which compiles into JSON and interpretes with Javascript!

Latest version **0.2.1** (published 2016-02-21) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ti-lang
pnpm add ti-lang
yarn add ti-lang
bun add ti-lang
```

## 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.2.1 |
| Published | 2016-02-21 |
| First published | 2016-02-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | omeryagmurlu |
| Maintainers | omeryagmurlu |
| Keywords | tiLang, Scripting, Language, Interpreter, JSON, Javascript |

## Links

- npm: https://www.npmjs.com/package/ti-lang
- Repository: https://github.com/omeryagmurlu/ti-lang
- Homepage: http://omeryagmurlu.github.com
- Issues: https://github.com/omeryagmurlu/ti-lang/issues
- npm.io page: https://npm.io/package/ti-lang

## Dependencies (2)

- [mathjs](https://npm.io/package/mathjs.md) ^2.6.0
- [watchr](https://npm.io/package/watchr.md) ^2.4.13

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.1 (latest) — 2016-02-21
- 0.2.0 — 2016-02-21
- 0.1.0 — 2016-02-21
- 0.0.0 — 2016-02-21

## README

# ti-lang [![NPM version][npm-image]][npm-url]
> tiLang is a Language which compiles into JSON and executes with Javascript!

## Installation

```sh
$ npm install --save ti-lang
```

## Usage


```js
var tiLang = require('ti-lang');

let lang = new tiLang({
	global: [{
		A_GLOBAL_VARIABLE: 'node.js'
	}],
	methods: {
		sayHi(cb) {
			console.log('Hii');
			return cb();
		},
		sayWhatISaid(text, cb) {
			console.log('Yo said: ', text)
			return cb();
		},
		multiply(multiplier1, multiplier2, cb) {
			return cb(undefined, multiplier1 * multiplier2);
		}
	}
});

lang.execute('sayHi; set|num|15; print|${num};');
```

You can find more detailed usage examples in examples/tiFiles/test.ti.
## License

Apache-2.0 © [omeryagmurlu](https://omeryagmurlu.github.com)


[npm-image]: https://badge.fury.io/js/ti-lang.svg
[npm-url]: https://www.npmjs.com/package/ti-lang

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