Check if the process is running as root user, eg. started with
sudo
.
$ npm install --save is-root
$ sudo node index.js
// index.js
var isRoot = require('is-root');
isRoot();
//=> true
MIT © Sindre Sorhus
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.