Skip to content

thejh/node-hungarian-magic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation:

npm install hungarian-magic

Wraps a function, an array of functions or an object containing functions.

Supported hungarian prefixes:

  • str: String
  • cb: Function
  • fn: function
  • func: function
  • num: number
  • obj: Object
  • bool: boolean

Either just use the prefix as variable name or continue it either camelCase-like (numAge) or with an underscore (num_age).

Usage example with dnode:

var hungarianWrap = require('hungarian-magic');
var server = dnode(hungarianWrap({
    zing : function (num, cb) { cb(num * 100) }
}));

About

[ABANDONED] Hungarian notation may be ugly, but as long as you can use it for magic, that doesn't matter (much).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published