Tag Archives: javascript objects
Listen for Folder or File Changes Using “Node.js”
Here is a quick tutorial on using fs.watchFile and fs.readFile in node.js. This will listen or “watch” for file changes on the server and then spit the contents of the file out to the console. However once you get a handle to the data you can do something more useful with it. Let’s check it out.
Posted in JavaScript, node.js
Tagged event listeners, fs.readFile, fs.watchFile, javascript, javascript functions, javascript objects, node fs, node.js, nodeJS, server.js
Leave a comment
Get Length of JavaScript Object Array
Unlike javaScript arrays, the “.length” property doesn’t exist in objects. Why? because it’s an object of data. Just a place to store stuff. So here’s a small and simple script you can run to return the length of an object so you can sift through it. Continue reading
Posted in JavaScript
Tagged .length, array size, javascript, javascript array, javascript functions, javascript object, javascript objects, object size, size
Leave a comment