Skip to content

Instantly share code, notes, and snippets.

@merin83
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save merin83/ebafecd54ea04738ee10 to your computer and use it in GitHub Desktop.

Select an option

Save merin83/ebafecd54ea04738ee10 to your computer and use it in GitHub Desktop.

Path

এই মডিউলে কিছু utilities আছে যা file path handle এবং transformation এর কাজে ব্যবহার হয়। প্রায় সব গুলো methods শুধু string transformation perform করে। NB. file system path এর validity check করে না।

Use require('path')

Process

process একটি গ্লোবাল অবজেক্ট এবং একে যেকোনো জায়গা থেকে access করা যায়। It is also an object of EventEmitter. node process সাধারণত exit হয় with a 0 status code যখন আর কনো asynchoronous operation pending থাকে না।

Punnycode

punnycode দ্বারা unicode represent করা হয়, unicode represent করতে limited character subset of ASCII ব্যবহার করে।

Punycode.js is bundled with Node.js v0.6.2+. Use require('punycode') to access it.

Query Strings

এই module টা কিছু utilities provide করে যা string এর বিভিন্ন query নিয়ে deal করে। those utilities are given below

querystring.stringify,
querystring.parse,
querystring.escape,
querystring.unescape

Readline

Readline একটা stream কে read করতে সম্মতি দেয় on a line by line basis. (such as process.stdin).

NB. once you've invoked this module, your node program will not terminate until you've closed the interface. see documentation for details how to exit.

REPL

Read-Eval-Print-Loop(REPL) জাভাস্ক্রিপ্ত run করার অথবা result দেখার একটি way. এটি সাধারণত debugging, testing অথবা code এর জন্য ব্যাবহার করা হয়।

Smalloc

buffer একটা small memory তে থাকে যা external raw memory এর বণ্টন handle করে। এই functionality Smalloc দ্বারা পরিচালিত হয়।

Stream

stream একটা virtual পদ্ধতি যা node এর বিভিন্ন object দ্বারা implement করা হয়। যেমনঃ request to an HTTP server is a stream। stream কে read,write করা যায়। All streams are instances of EventEmitter.

StringDecoder

stringDecoder একটি buffer কে string এ পরিনত করে buffer.toString() দ্বারা। utf8 এর জন্য অতিরিক্ত support provide করে।

require('string_decoder')

Timers

সব timer function গুলো global. একে require() করতে হয় না। timeset, timeinterval আরও অনেক time releted কাজে এটি ব্যবহার করা হয়।

TLS/SSL

TLS module openssl ব্যাবহার করে Transport Layer Security and/or Secure Socket Layer এর encrypted stream communication provide করার জন্য।

Use require('tls') to access this module.

TTY

এই module এ tty.ReadStream and tty.WriteStream classes আছে। প্রায় সব ক্ষেত্রে একে সরাসরি ব্যবহার করা হয়।

UDP/Datagram

Datagram socket একটি connectionless network socket, যা packet delivery services এর sending or receiving point হিসেবে কাজ করে। প্রত্যেকটি packet যা sent or receive হয়ে থাকে তারা individual addressed and routed হয়ে থাকে। Datagram Socket binding is now always asynchoronous.

Datagram sockets are available through require('dgram').

URL

এই module এ URL resolution and parsing এর utilities থাকে।

Call require('url') to use it.

util

প্রথমে এটা nodejs এর internal api support এর জন্য create করা হয় যা অনেক প্রোগ্রাম এ দরকার হয় কিন্তু কনো prothom e ata nodejs er internal api support er jonno cretate kora hoy ja tomar onek program e dorkar hoy util functions নিজের উদ্দেশ্য meet করতে না পারলে বা lack করলে নিজের utilities লিখতে হয়।

 Use require('util')

VM

জাভাস্ক্রিপ্ট কোড গুলো compile ও run করা যায় অথবা compile এবং save করে পরে run kora jay.

var vm = require('vm');

Zlib

Gzip/Gunzip, Deflate/Inflate, and DeflateRaw/InflateRaw classes এর সাথে বাইন্ডিং করা জায়।সব class গুলতে একি options থাকে। zlib readable,writable stream support kore.

var zlib = require('zlib');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment