fuzzy-proxy

0.0.13 • Public • Published

fuzzy-proxy

flipactual Travis Codecov Node NPM

Fuzzy match keys on objects

FuzzyProxy

Kind: global class

new FuzzyProxy(objectToProxy)

FuzzyProxy - Creates an object with fuzzy matching capabilities

Returns: object - Fuzzy proxied object

Param Type Description
objectToProxy object Object to apply fuzzy proxying to

Example

const bestObjectEver = new FuzzyProxy({
  tripleDouble(number) {
    return number * 3 * 2;
  },
  unicorn: '🦄',
});
 
bestObjectEver.uni
// → '🦄'
 
bestObjectEver.tripleD(13)
// → 78

Scripts

test – run the tests

npm run test

coverage – generate and view code coverage as HTML

npm run coverage

lint – lint the codebase

npm run lint

readme – generate the README

npm run readme

compile – compile the code

npm run compile

License

MIT @ Flip

Readme

Keywords

none

Package Sidebar

Install

npm i fuzzy-proxy

Weekly Downloads

0

Version

0.0.13

License

MIT

Last publish

Collaborators

  • flipactual