@jswork/next-match

1.0.1 • Public • Published

next-match

Math groups with next.

version license size download

installation

npm install -S @jswork/next-match

usage

import '@jswork/next-match';

const str = '/api/v1/{id}/{uuid}/{a.b}';

nx.match(str, /{(.*?)}/g, 0);   // [ '{id}', '{uuid}', '{a.b}' ]
nx.match(str, /{(.*?)}/g, 1);   // ['id', 'uuid', 'a.b']

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-match

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • afeiship