git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / 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