xmatcher

1.1.1 • Public • Published

xMatcher

Description

Library of pattern matching based on pure types and symbols

Usage

[sudo] npm i -S xmatcher

Example

const matcher = require('xmatcher');
 
console.log(matcher.matches({ 'foo': 1, 'bar': 2, 'baz': 3, '_': 'Common value' }, 'bar'));
// [ 2 ]

Package Sidebar

Install

npm i xmatcher

Weekly Downloads

2

Version

1.1.1

License

ISC

Unpacked Size

6.72 kB

Total Files

5

Last publish

Collaborators

  • ktfth