git ssb

0+

cel-desktop / ssb-pkg



Tree: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44

Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / test / test-50-path-as-buffer / test-x-index.js

557 bytesRaw
1'use strict';
2
3var fs = require('fs');
4var path = require('path');
5var hasURL = typeof URL !== 'undefined';
6
7var d = __dirname;
8var f = path.join(__dirname, 'test-z-asset.css');
9
10console.log(fs.statSync(f).size);
11console.log(fs.statSync(Buffer.from(f)).size);
12if (hasURL) console.log(fs.statSync(new URL('file://' + f)).size);
13
14console.log(fs.readdirSync(d).includes('test-z-asset.css'));
15console.log(fs.readdirSync(Buffer.from(d)).includes('test-z-asset.css'));
16if (hasURL) console.log(fs.readdirSync(new URL('file://' + d)).includes('test-z-asset.css'));
17

Built with git-ssb-web