Submit
Path:
~
/
/
usr
/
local
/
lib
/
node_modules
/
npm
/
node_modules
/
JSONStream
/
node_modules
/
jsonparse
/
test
/
File Content:
utf8.js
var test = require('tape'); var Parser = require('../'); test('3 bytes of utf8', function (t) { t.plan(1); var p = new Parser(); p.onValue = function (value) { t.equal(value, '├──'); }; p.write('"├──"'); }); test('utf8 snowman', function (t) { t.plan(1); var p = new Parser(); p.onValue = function (value) { t.equal(value, '☃'); }; p.write('"☃"'); }); test('utf8 with regular ascii', function (t) { t.plan(4); var p = new Parser(); var expected = [ "snow: ☃!", "xyz", "¡que!" ]; expected.push(expected.slice()); p.onValue = function (value) { t.deepEqual(value, expected.shift()); }; p.write('["snow: ☃!","xyz","¡que!"]'); });
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
big-token.js
708 bytes
0644
boundary.js
2777 bytes
0644
offset.js
1715 bytes
0644
primitives.js
1240 bytes
0644
surrogate.js
451 bytes
0644
unvalid.js
251 bytes
0644
utf8.js
705 bytes
0644
N4ST4R_ID | Naxtarrr