Questions tagged as 'fs'

1
answer

How to list files in a directory and use in an Angular2 + Webpack project

Hello, I'm creating a project in Angular2 + Webpack and in this project I use the @angular/material as the design library. So that I can create my own icons using SVG, I'm extending the component MatIcon as it says in the documentation...
asked by 19.06.2018 / 14:31
1
answer

How to check if file exists (asynchronous)

In Node.JS, I use this method of fs to check if a file exists: const fs = require('fs'); // [...] if (fs.existsSync(path)) { /** Do stuff. */ } The question is: how can I do the same thing, but in an asynchronous way? Note: I use...
asked by 21.03.2018 / 16:35