# balanced-parentheses

> Library for checking balanced parentheses in a string.

Latest version **1.0.0** (published 2023-05-03) · 0 weekly downloads

## Install

```sh
npm install balanced-parentheses
pnpm add balanced-parentheses
yarn add balanced-parentheses
bun add balanced-parentheses
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-05-03 |
| First published | 2023-05-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | whydnxx |
| Maintainers | whydnxx |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2023-05-03

## README

# Balanced Parentheses

Library for checking balanced parentheses in a string.

## Usage

```typescript
import { Utility } from 'balanced-parentheses';

console.log(Utility.isBalanced("()")); // true
console.log(Utility.isBalanced("()()")); // true
console.log(Utility.isBalanced(")(")); // false
console.log(Utility.isBalanced("")); // true
console.log(Utility.isBalanced("((()))")); // true
console.log(Utility.isBalanced("((()")); // false
```

## API

`isBalanced(str: string): boolean`

Returns `true` if parentheses in string s are balanced, otherwise false.

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