UNPKG

rdxgen

Version:

redux boilerplate generator for reducers and actions and many more via templates for @ngrx or redux based projects!

13 lines (10 loc) 291 B
const fs = require('fs'); const CONSTANTS = require('./constants'); function readAnswers() { if (fs.existsSync(CONSTANTS.savedAnswersPath)) { return JSON.parse(fs.readFileSync(CONSTANTS.savedAnswersPath, 'utf8')); } else { return undefined; } } module.exports = readAnswers;