find-closing-symbol

1.1.0 • Public • Published

find-closing-symbol

Build Status Coverage Status Code Climate

Find closing symbol (parentheses, curly braces...)

Install

npm i find-closing-symbol

Usage

var findClosingSymbol = require('find-closing-symbol');
var findClosingParenthesis = findClosingSymbol('(', ')');

findClosingParenthesis('2 + (5 + 1)) * 5'); // => 12

See spec.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.03latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.03
1.0.00

Package Sidebar

Install

npm i find-closing-symbol

Weekly Downloads

3

Version

1.1.0

License

MIT

Last publish

Collaborators

  • javiercejudo