File: basic.js

package info (click to toggle)
node-is-node 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 72 kB
  • sloc: javascript: 8; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 291 bytes parent folder | download
1
2
3
4
5
6
7
8
// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md
const $isNode = require('../');

if ($isNode) {
  console.log('This is a node process.');
} else {
  console.log('What kind of witchcraft is this? This is not a node process.');
}