nodejs addon for switcher