JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q45889F
  • License MIT

Dota2 web api node.js version

Package Exports

  • dota2-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dota2-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Readlines

Build Status

Read file line as array.

Install

npm install readlines

or

npm install -g readlines

Example:

  var fd = require('readlines');
  var lines = fd.readlinesSync('example.txt');
  for(var line in lines){
    console.log(lines[line]);
  };

API

readlinesSync(filename, [options])

Sync read file by line return an array.

  var lines = fd.readlinesSync(filePath);

readlines(filename, [options], callback)

Async read file by line return an array.

  fd.readlines(filePath, function(err, lines){
      console.log(lines);
  });

readlineSync(filename, [options], lineNum)

Sync read file by line return specific line.

  var line = fd.readlineSync(filePath, 3);

readline(filename, [options], lineNum, callback)

Async read file by line return specific line.

  fd.readline(filePath, 3, function(err, line){
      console.log(line);
  });

License

The MIT License

Bitdeli Badge