# mujaen-syntax-check

> Syntax Checker

Latest version **1.0.1** (published 2021-09-13) · 0 weekly downloads

## Install

```sh
npm install mujaen-syntax-check
pnpm add mujaen-syntax-check
yarn add mujaen-syntax-check
bun add mujaen-syntax-check
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-09-13 |
| First published | 2021-09-13 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jinjer Kim |
| Maintainers | mujaen |

## Links

- npm: https://www.npmjs.com/package/mujaen-syntax-check
- Repository: https://github.com/mujaen/mujaen-syntax-check
- Homepage: https://github.com/mujaen/mujaen-syntax-check#readme
- Issues: https://github.com/mujaen/mujaen-syntax-check/issues
- npm.io page: https://npm.io/package/mujaen-syntax-check

## Recent versions

- 1.0.1 (latest) — 2021-09-13
- 1.0.0 — 2021-09-13

## README

# mujaen-syntax-ckeck
## Syntax Ckecker

### Install
```
npm install mujaen-syntax-ckeck
```

### brackets
- 입력값이 괄호 혹은 지정한 문자열이 짝이 맞는지 확인합니다 
- 이때, 'string' 외에 다른 타입 혹은 공백일 시 실행되지 않습니다.

### start
- 입력값이 특정 문자열로 시작하는지 확인합니다

```javascript
{
    start: '[',
}
```

### end
- 입력값이 특정 문자열로 끝나는지 확인합니다

```javascript
{
    end: ']'
}
```

### validate
- 검사 규칙을 수행하여 결과값으로 'boolean'을 반환합니다.
```javascript
form.add({validate: []});
```

### options

| 속성 | 설명 | 기본값 | 타입 |
|---|---|---|---|
| brackets | 문자열 짝 | {} | object |
| start | 문자열 시작 | '' | string |
| end | 문자열 끝 | '' | string |


### Usage
```javascript
import SyntaxChecker from "mujaen-syntax-check";

const checker = new SyntaxChecker({
    brackets: {
        '[':']',
        '{':'}',
        '(':')'
    },
    start: '[',
    end: ']'
});

checker.validate('[({}{{{{}}}})[][]]'); //result: true or false 
```

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