Skip to main content

NODE JS



Node.js is a platform built on Chrome's JavaScript runtime for easily building fast and scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.?




NODE  -RPEL
Read 
Print 
Evaluate
Loop
_______________________________________________________________________________________________

Node Package Manager

C:\Users\lenovo\sample>npm version
{ npm: '5.6.0',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.29.0',
  node: '8.11.2',
  openssl: '1.0.2o',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.1',
  v8: '6.2.414.54',

  zlib: '1.2.11' }
__________________________________________________________

Syntax :npm install <Module Name>  
Installing web framework
   :
npm install express       // local installation within node package
                                              npm install express -g  // global installation 
                                                    npm uninstall express   // uninstall  package
                                              npm search express     // to search node 
How to list down npm modules ?

C:\Users\lenovo\sample>npm ls
C:\Users\lenovo\sample
`-- (empty)
_________________________________________________________

https://www.javatpoint.com/nodejs-command-line-options ---------- check  this later
__________________________________





Node.js :Crypto

The Node.js Crypto module supports cryptography. It provides cryptographic functionality that includes a set of wrappers for open SSL's hash HMAC, cipher, decipher, sign and verify functions.



Node.js : Bower:

Web sites are made of lots of things — frameworks, libraries, assets, and utilities. Bower manages all these things for you.
Keeping track of all these packages and making sure they are up to date (or set to the specific versions you need) is tricky. Bower to the rescue!
Bower can manage components that contain HTML, CSS, JavaScript, fonts or even image files. Bower doesn’t concatenate or minify code or do anything else - it just installs the right versions of the packages you need and their dependencies.
To get started, Bower works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you’re looking for. Bower keeps track of these packages in a manifest file, bower.json. How you use packages is up to you. Bower provides hooks to facilitate using packages in your tools and workflows.
Bower is optimized for the front-end. If multiple packages depend on a package - jQuery for example - Bower will download jQuery just once. This is known as a flat dependency graph and it helps reduce page load.
https://bower.io/

https://bower.io/

______________________________________________________________________________
Node.js : Karma:






_______________________________________________________________________________

Node.js : grunt



_______________________________________________________________________________

Node.js : jasmine

_______________________________________________________________________________

Node.js : Path :used to handle and transform files paths

https://www.javatpoint.com/nodejs-path
__________________________________________________________________________

_______________________________________________________________________________

Node.js File System (FS)


_______________________________________________________________________________


https://www.npmjs.com/package/request
_______________________________________________________________________________


https://colorlib.com/wp/npm-packages-node-js/


______________________________________________________________________


https://gist.github.com/anvaka/8e8fa57c7ee1350e3491


https://acodez.in/node-js-frameworks/
https://gist.github.com/anvaka/8e8fa57c7ee1350e3491

https://colorlib.com/wp/npm-packages-node-js/
https://colorlib.com/wp/npm-packages-node-js/









Comments

Popular posts from this blog

GraphQL

What is GraphQL  API Standard invented & open-sourced by Facebook Alternative to  REST API  enables declarative data fetching  exposes single endpoint & responds to queries How it works?  Why Graphql? Improvises performance by reducing the data that is to be transferred over the internet Variety of different frontend frameworks and platforms on client-side Fast development speed & expectation for rapid feature development Why Graphql is better than REST? Flexibility & efficient  No more over /under fetching of data Over fetching : Under fetching: Insightful analytics  Schema serves as contract between client and server CORE CONCEPTS : SDL :SCHEMA DEFINITION LANGUAGE Writing Data with mutations 3 kinds of mutations creating new data updating existing data deleting existing data

The BattleGround

Last Sunday while zapping the channels of my idiot box I chanced upon to watch one of the greatest epic of our times –MAHABHARAT. It did’nt take me much time to recall the waves that it created across the nation- when it was telecasted for the first time.I was too young to comprehend it,yet I used to watch it with paramount interest,sitting next to dad & imitating his stimuli to what character speaks Later in my teens ,unlike most of my friends who used to enjoy watching top tens & horror shows , I was inundated to discover that zee was going to re telecast Mahabharat .This time, I was grown up enough to understand it,so I religiously watched all the episodes with same interest. Watching such an epic in formative years has great influence on one’s approach towards life .Today to me ,Mahabharat isn’t just another epic but it is a thinking process, where the mind is the battleground, THE KURUSHETRA ,where all kind of thoughts hover, the state of mind that we...

Number

Problem :Write a function to find square root of a number /* Steps: Use binary search to find the square root. 1. Initialize, start = 0, end = number, mid = (start+end)/2. 2. Set prevMid = 0, as the previous mid value. 3. Find diff = absolute difference between prevMid and mid. 4. While mid is not the square root of number (i.e. mid*mid != number) and difference diff is greater than 0.0005,   repeat the following steps:   a. If mid*mid > number, then the square root will be less than mid. So, set end = mid.   b. Else, the square root will be greater than mid. So, set start = mid.   c. Set prevMid = mid   d. Re-evaluate mid   = (start+end)/2.   e. Re-evaluate diff from prevMid and mid. */ - - - -