Mastering Node.js. (2013)
- Record Type:
- Book
- Title:
- Mastering Node.js. (2013)
- Main Title:
- Mastering Node.js.
- Other Names:
- Pasquali, Sandro
- Contents:
- Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Understanding the Node Environment; Extending JavaScript; Events; Modularity; The Network; V8; Memory and other limits; Harmony; The process object; The Read-Eval-Print Loop and executing a Node program; Summary; Chapter 2: Understanding Asynchronous Event-Driven Programming; Broadcasting events; Collaboration; Queueing; Listening for events; Signals; Forks; File events; Deferred execution; process.nextTick; Timers; setTimeout; setInterval; unref and ref. Understanding the event loopFour sources of truth; Callbacks and errors; Conventions; Know your errors; Building pyramids; Considerations; Listening for file changes; Summary; Chapter 3: Streaming Data Across Nodes and Clients; Exploring streams; Implementing readable streams; Pushing and pulling; Writable streams; Duplex streams; Transforming streams; Using PassThrough streams; Creating an HTTP server; Making HTTP requests; Proxying and tunneling; HTTPS, TLS(SSL), and securing your server; Creating a self-signed certificate for development; Installing a real SSL certificate. The request objectThe URL module; The Querystring module; Working with headers; Using cookies; Understanding content types; Handling favicon requests; Handling POST data; Creating and streaming images with Node; Creating, caching, and sending a PNG representation; Summary; Chapter 4: Using Node to Access theCover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Understanding the Node Environment; Extending JavaScript; Events; Modularity; The Network; V8; Memory and other limits; Harmony; The process object; The Read-Eval-Print Loop and executing a Node program; Summary; Chapter 2: Understanding Asynchronous Event-Driven Programming; Broadcasting events; Collaboration; Queueing; Listening for events; Signals; Forks; File events; Deferred execution; process.nextTick; Timers; setTimeout; setInterval; unref and ref. Understanding the event loopFour sources of truth; Callbacks and errors; Conventions; Know your errors; Building pyramids; Considerations; Listening for file changes; Summary; Chapter 3: Streaming Data Across Nodes and Clients; Exploring streams; Implementing readable streams; Pushing and pulling; Writable streams; Duplex streams; Transforming streams; Using PassThrough streams; Creating an HTTP server; Making HTTP requests; Proxying and tunneling; HTTPS, TLS(SSL), and securing your server; Creating a self-signed certificate for development; Installing a real SSL certificate. The request objectThe URL module; The Querystring module; Working with headers; Using cookies; Understanding content types; Handling favicon requests; Handling POST data; Creating and streaming images with Node; Creating, caching, and sending a PNG representation; Summary; Chapter 4: Using Node to Access the Filesystem; Directories, and iterating over files and folders; Types of files; File paths; File attributes; Opening and closing files; fs.open(path, flags, [mode], callback); fs.close(fd, callback); File operations; fs.rename(oldName, newName, callback); fs.truncate(path, len, callback). Fs.ftruncate(fd, len, callback)fs.chown(path, uid, gid, callback); fs.fchown(fd, uid, gid, callback); fs.lchown(path, uid, gid, callback); fs.chmod(path, mode, callback); fs.fchmod(fd, mode, callback); fs.lchmod(path, mode, callback); fs.link(srcPath, dstPath, callback); fs.symlink(srcPath, dstPath, [type], callback); fs.readlink(path, callback); fs.realpath(path, [cache], callback); fs.unlink(path, callback); fs.rmdir(path, callback); fs.mkdir(path, [mode], callback); fs.exists(path, callback); fs.fsync(fd, callback); Synchronicity; Moving through directories; Reading from a file. Reading byte by bytefs.read(fd, buffer, offset, length, position, callback); Fetching an entire file at once; fs.readFile(path, [options], callback); Creating a readable stream; fs.createReadStream(path, [options]); Reading a file line by line; The Readline module; Writing to a file; Writing byte by byte; fs.write(fd, buffer, offset, length, position, callback); Writing large chunks of data; fs.writeFile(path, data, [options], callback); fs.appendFile(path, data, [options], callback); Creating a writable stream; fs.createWriteStream(path, [options]); Caveats; Serving static files. … (more)
- Publisher Details:
- Place of publication not identified : Packt Publishing
- Publication Date:
- 2013
- Extent:
- 1 online resource
- Subjects:
- 005.2762
COMPUTERS -- Internet -- Application Development
Application software
JavaScript (Computer program language)
Application software
JavaScript (Computer program language)
Application software
JavaScript (Computer program language)
COMPUTERS -- Web -- Web Programming
Electronic books - Languages:
- English
- ISBNs:
- 1306166039
9781306166034
9781782166337
1782166335 - Related ISBNs:
- 1782166327
1782166335
9781782166320 - Notes:
- Note: Print version record.
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.86741
- Ingest File:
- 01_109.xml