source: trip-planner-front/node_modules/y18n/build/lib/platform-shims/node.js@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 377 bytes
Line 
1import { readFileSync, statSync, writeFile } from 'fs';
2import { format } from 'util';
3import { resolve } from 'path';
4export default {
5 fs: {
6 readFileSync,
7 writeFile
8 },
9 format,
10 resolve,
11 exists: (file) => {
12 try {
13 return statSync(file).isFile();
14 }
15 catch (err) {
16 return false;
17 }
18 }
19};
Note: See TracBrowser for help on using the repository browser.