Skip to content

Cryptolibertarian-id/Mastering-Node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastering Node.js

Learning Path For Deno | With Gun

Table of Contents


Last touched on 14 August 2022

Parameter Value Note
Official Website Click Here
Github Repository Click Here
Node.js Blog

Resources

Parameter Value Note
Repository bcrypto Click Here JS Crypto Library

Node Binaries

Node Version

For check installed node on your machine, execute this command :

$ deno --version

API Implementations

Buffer

What is Buffer? you can read my repository here.

  1. Create Buffer from String

    const buf = Buffer.from("hello world", "utf8");
    console.log(buf); //<Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64>
  2. Check Buffer Object

    console.log(typeof buf); //object
    console.log(buf instanceof Buffer); // true
  3. Convert Buffer to Base64 String

    console.log(buf.toString("base64")); //aGVsbG8gd29ybGQ=
  4. Convert Buffer to Hex

    console.log(buf.toString("hex")); //68656c6c6f20776f726c64
  5. Convert Buffer to ASCII

    console.log(Buffer.from("SGVsbG8gV29ybGQ=", "base64").toString("ascii")); //Hello World
  6. Reserved


File System

  1. Promise-based Unlink - Click Here
  2. Synchronous Unlink - Click Here
  3. Promise-based Read File - Click Here
  4. Synchronous Read File - Click Here
  5. Reserved

Applications

  • Read & Write File Apps

Just For Fun Examples

  1. Playing with Buffer
  2. Reserved

FAQs

Difference Between Buffer & Stream

So what is the difference between Stream & Buffer? A buffer has a specified, definite length whereas a stream does not. A stream is a sequence of bytes that is read and/or written to, while a buffer is a sequence of bytes that is stored.

About

Learning Path for Node.js | With Gun

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published