node-typo

v1.0.0
Auto find the nearest property(or method) name of an wrapped object
typo

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

Metadata

  • MIT
  • >= 0.11.13
  • Luin
  • released 12/27/2014

Downloads

Maintainers