Giter Site home page Giter Site logo

nodejs's Introduction

  1. Asynchronously reads the entire contents of a file. Example:

fs.readFile('/etc/passwd', function (err, data) { if (err) throw err; console.log(data); });

  1. dns.lookupService(address, port, callback)

  2. Launches a new process with the given command, with command line arguments in args. If omitted, args defaults to an empty Array.

child_process.spawn(command[, args][, options])

  1. Prints to stdout with newline. This function can take multiple arguments in a printf()-like way. Example:

var count = 5; console.log('count: %d', count); // prints 'count: 5'

  1. Returns an array of IP addresses as strings that are currently being used for resolution

dns.getServers()

  1. net module :

The net module provides you with an asynchronous network wrapper. It contains functions for creating both servers and clients (called streams). You can include this module with require('net');.

  1. An array containing the command line arguments. The first element will be 'node', the second element will be the name of the JavaScript file. The next elements will be any additional command line arguments.

process.argv

  1. util

The util module is primarily designed to support the needs of node.js's internal APIs. Many of these utilities are useful for your own programs. If you find that these functions are lacking for your purposes, however, you are encouraged to write your own utilities. We are not interested in any future additions to the util module that are unnecessary for node.js's internal functionality.

  1. Zlib

This provides bindings to Gzip/Gunzip, Deflate/Inflate, and DeflateRaw/InflateRaw classes. Each class takes the same options, and is a readable/writable Stream.

10.Return the directory name of a path. Similar to the Unix dirname command.

path.dirname('/foo/bar/baz/asdf/quux') // returns '/foo/bar/baz/asdf'

nodejs's People

Contributors

thanh-nguyen-van avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.