juliangruber / balanced-match

Match balanced character pairs, like { and }
MIT License
125 stars 40 forks source link

package.json: Switch from "main" to "exports" #50

Closed lanodan closed 1 year ago

lanodan commented 1 year ago

This allows to actually do import balanced from 'balanced-match'

While currently you need to do import balanced from 'balanced-match/index.js'

See: https://nodejs.org/api/packages.html

juliangruber commented 1 year ago

it works in brace-expansion

juliangruber commented 1 year ago

https://github.com/juliangruber/balanced-match/releases/tag/v3.0.1