'how can I get DeviceID, serial number of chromebook in javascript

I need to develop an Packaged App which could get and print deviceID, SerialNumber and other system information of Chromebook in javascript. If we can run shell command: run sudo dump_vpd_log --full –stdout and retrieve information from it in javascript.

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source