how to use fs in angular 9 code example
Example 1: fs in angular
"dependencies": {
"@types/node": "^7.0.5"
}
Example 2: fs in angular
import * as fs from 'fs';
import * as path from 'path';
fs.readFile(path.join(__dirname, '../../client/index.html'), 'utf8', (error, data) => {
// ...
})