Skip to content Skip to sidebar Skip to footer
Showing posts with the label Fs

Why Is This Fs.readfile Loop Not Pushing Its Results To My Array?

#!/usr/bin/env node var fs = require('fs') , async = require('async') , progr… Read more Why Is This Fs.readfile Loop Not Pushing Its Results To My Array?

Special Characters In Node.js Readdir()

I'm running this piece of code in node.js in order to see the files in a directory an to see th… Read more Special Characters In Node.js Readdir()

Making My Own "database" Using Node And Fs

So I'm trying to make a database, couple of function snippets that read, write or create X.json… Read more Making My Own "database" Using Node And Fs

Fs.readdir Is Not Working When I Try To Read A Folder

I am trying to read the files from a folder 'data' and the code below should normally work,… Read more Fs.readdir Is Not Working When I Try To Read A Folder

Promises With Fs And Bluebird

I'm currently learning how to use promises in nodejs so my first challenge was to list files in… Read more Promises With Fs And Bluebird

Swap Order Of Arguments To "then" With Bluebird / NodeJS Promises

I have a function which asynchronously grabs a value from a server: var request = require('requ… Read more Swap Order Of Arguments To "then" With Bluebird / NodeJS Promises