• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Scripting with NodeJS
 

Scripting with NodeJS

on

  • 1,286 views

Presented at MelbJS (Melbourne Javascript Meetup) on 11th Apri

Presented at MelbJS (Melbourne Javascript Meetup) on 11th Apri

Statistics

Views

Total Views
1,286
Views on SlideShare
907
Embed Views
379

Actions

Likes
0
Downloads
1
Comments
0

6 Embeds 379

http://inlight.com.au 317
http://localhost 29
http://inlight-entropy 28
http://www.inlight.com.au 2
http://www.linkedin.com 2
http://nodeslide.herokuapp.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Scripting with NodeJS Scripting with NodeJS Presentation Transcript

  • Scripting with NodeJS Ben Pearson - @benjaminpearson
  • Most of the time I develop with Objective C.... ...quite different to the clean syntax of JavaScript
  • Scripting• Automating tasks• Command line utilities• Macros• Scraping websites• Shell, Python, PHP, Ruby
  • NodeJS• Built on V8 engine• Run JavaScript outside of browser• Fast, non-blocking / asynchronous, lightweight• Its JavaScript, for realz!
  • npm - Package Manager for Node• Super easy• Search, install and update packages• http://npmjs.org/
  • Getting Started• git clone https://github.com/visionmedia/n.git• cd n• sudo make install• sudo n stableLatest versions of node come with npm, if you are having issues you can try• curl http://npmjs.org/install.sh | sudo sh* note: ideally its best not to use `sudo` so cavalier, there are alternative methods, but this is simple.
  • Code Example• Youtube• Command line args • process.argv • commander.js• Bin it
  • Code Example• Radar / Ping• Cron• Growl notifications• Daemonize
  • Code Example• Visual Rent• Web scraping with jQuery (sizzle selectors)• Express• fs• MongoDB
  • Moaaar Modules• npmjs.org - search modules• Node modules wiki page
  • What would MacGyver Do? Script with NodeJS
  • Thank you