Deno Developer

Deno Developer

1612591800

JSON5 for Deno

Deno JSON5

JSON5 for Deno.

Example

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"
}
*/

Methods

  • JSON5.stringify
  • JSON5.parse
  • JSON5.require
  • JSON5.requireAsync

Download Details:

Author: DevSnowflake

Source Code: https://github.com/DevSnowflake/json5

#deno #node #nodejs #javascript

What is GEEK

Buddha Community

JSON5 for Deno
Darren  Watsica

Darren Watsica

1597913858

Should You Learn Deno Js ? The Deno Js Intro By DESI PROGRAMMER

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

Khaitan

Khaitan

1590306362

Deno | What is Deno? | Deno tamil

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

Deno Developer

Deno Developer

1612591800

JSON5 for Deno

Deno JSON5

JSON5 for Deno.

Example

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"
}
*/

Methods

  • JSON5.stringify
  • JSON5.parse
  • JSON5.require
  • JSON5.requireAsync

Download Details:

Author: DevSnowflake

Source Code: https://github.com/DevSnowflake/json5

#deno #node #nodejs #javascript

Renato Silva

1597895940

How JavaScript Works for Deno js

Deno js Bootcamp 2020, Deno web development, Deno tutorials - with Real Projects

#javascript #deno tutorials #deno

Vicky  Graham

Vicky Graham

1626958800

Learn the Basics of Deno in 7 minutes

Learn the Basics of Deno in 7 minutes

Code Link: https://github.com/akash-joshi/deno-url-shortener

#deno #basics #deno basics