1612591800
main.ts
import JSON5 from "https://deno.land/x/json5";
const data = `{
// comments
unquoted: 'and you can quote me on that',
singleQuotes: 'I can use "double quotes" here',
lineBreaks: "Look, Mom! \
No \\n's!",
hexadecimal: 0xdecaf,
leadingDecimalPoint: .8675309, andTrailing: 8675309.,
positiveSign: +1,
trailingComma: 'in objects', andIn: ['arrays',
],
"backwardsCompatible": "with JSON",
}`;
console.log(JSON5.parse(data));
/*
{
unquoted: "and you can quote me on that",
singleQuotes: 'I can use "double quotes" here',
lineBreaks: "Look, Mom! No \\n's!",
hexadecimal: 912559,
leadingDecimalPoint: 0.8675309,
andTrailing: 8675309,
positiveSign: 1,
trailingComma: "in objects",
andIn: [ "arrays" ],
backwardsCompatible: "with JSON"
}
*/
JSON5.stringify
JSON5.parse
JSON5.require
JSON5.requireAsync
Author: DevSnowflake
Source Code: https://github.com/DevSnowflake/json5
#deno #node #nodejs #javascript
1597913858
Hey youtube, This is Prince and welcome back to another exciting video and in this video we are going to explore a bit of Deno JS !
Comparison : 1:39
Installation : 3:39
#deno #deno js
1590306362
Learn what is Deno in tamil?
Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, original creator of Node.js, and is focused on productivity.
#deno #node #javascript #typescript #rust
1612591800
main.ts
import JSON5 from "https://deno.land/x/json5";
const data = `{
// comments
unquoted: 'and you can quote me on that',
singleQuotes: 'I can use "double quotes" here',
lineBreaks: "Look, Mom! \
No \\n's!",
hexadecimal: 0xdecaf,
leadingDecimalPoint: .8675309, andTrailing: 8675309.,
positiveSign: +1,
trailingComma: 'in objects', andIn: ['arrays',
],
"backwardsCompatible": "with JSON",
}`;
console.log(JSON5.parse(data));
/*
{
unquoted: "and you can quote me on that",
singleQuotes: 'I can use "double quotes" here',
lineBreaks: "Look, Mom! No \\n's!",
hexadecimal: 912559,
leadingDecimalPoint: 0.8675309,
andTrailing: 8675309,
positiveSign: 1,
trailingComma: "in objects",
andIn: [ "arrays" ],
backwardsCompatible: "with JSON"
}
*/
JSON5.stringify
JSON5.parse
JSON5.require
JSON5.requireAsync
Author: DevSnowflake
Source Code: https://github.com/DevSnowflake/json5
#deno #node #nodejs #javascript
1597895940
Deno js Bootcamp 2020, Deno web development, Deno tutorials - with Real Projects
#javascript #deno tutorials #deno
1626958800
Learn the Basics of Deno in 7 minutes
Code Link: https://github.com/akash-joshi/deno-url-shortener
#deno #basics #deno basics