Skip to content

Instantly share code, notes, and snippets.

@MaskRay
MaskRay / Gruntfile.coffee
Created March 1, 2013 16:17
Gruntfile.coffee
module.exports = (grunt) ->
'use strict'
grunt.initConfig
coffee:
debug:
files: [
expand: true
cwd: 'js'
src: ['**/*.coffee', '!**/_*.coffee']
@leommoore
leommoore / node_child_processes.markdown
Last active May 30, 2023 08:22
Node - Child Processes

#Node - Processes To launch an external shell command or executable file you can use the child_process. Apart from command line arguments and environment variables you cannot communicate with the process using child_process.exec. However you can use child_process.spawn to create a more integrated processes.

##Executing Child Processes

###To launch an external shell command

var child_process = require('child_process');
var exec = child_process.exec;