[nodejs] buffer to int