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