File: test.js

package info (click to toggle)
node-vinyl-fs 3.0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,884 kB
  • sloc: makefile: 43; sh: 43
file content (7 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
var fs = require('fs');
var isUtf8 = require('./is-utf8.js');
var ansi = fs.readFileSync('ansi.txt');
var utf8 = fs.readFileSync('utf8.txt');

console.log('ansi.txt is utf8: '+isUtf8(ansi));
console.log('utf8.txt is utf8: '+isUtf8(utf8));