node-typo

Auto find the nearest property(or method) name of an wrapped object

Usage no npm install needed!

<script type="module">
  import nodeTypo from 'https://cdn.skypack.dev/node-typo';
</script>

README

Typo

妈妈再也不用担心我写错属性(方法)名啦!

Build Status Code Climate Test Coverage Dependency Status

Install

npm install node-typo

To use this module you must be running node 0.11.13 or higher for proxy support

Usage

var typo = require('node-typo');
var fs = typo.wrap(require('fs'));

console.log(fs.exist === fs.exists); // true
console.log(fs.exsit === fs.exists); // true
console.log(fs.exsiiiiit === fs.exists); // false

WARN

DON'T USE THIS MODULE IN PRODUCTION