mtfunit
Version:
Mtfunit is a tiny JavaScript library that includes useful functions to operate strings and DOM
38 lines (36 loc) • 1.1 kB
Markdown
# mtfUnit



Mtfunit is a tiny JavaScript library that includes useful functions to operate strings and DOM
# Guide
## Node
### Setup
```
npm i mtfunit -D
```
### Usage
```
import { query } from 'mtfunit'
query('a', 'a = 1') // 1
```
use `require` will be fine too
## Browser
### Setup
```
<script src="https://cdn.jsdelivr.net/npm/mtfunit@1.0.1/dist/mtfunit.min.js"></script>
```
### Usage
```
<script>
mtfUnit.query('a', 'a = 1') // 1
</script>
```
use `requirejs` will be fine too
# Document
Read [Document](http://w.page.imweb.io/adam/) for more functions and details
Read [Test Report](http://w.page.imweb.io/adam/coverage/lcov-report) for coverage
# ToDo
DOM module will be independent in the future
- mtfUnit
- mtfUnitDom