0.0.11 • Published 8 years ago

@gik/tools-streamer v0.0.11

Weekly downloads
9
License
MIT
Repository
github
Last release
8 years ago

@gik/tools-streamer 0.0.11

RXjs extra operators. Part of our tools suite.

Contributors
Supported platforms
  • darwin
  • linux

Table of contents

  • streamer An utility belt for our most common operations with RXJS's Observables.

streamer

An utility belt for our most common operations with RXJS's Observables.

To do
  • Add unit tests for all operators.
Members

▲ Top


fromAccess

static property of streamer

Determine if given path is accessible.

Parameters
Returns

StreamBoolean - Wether the file is accessible or not.

▲ Top


fromStat

static property of streamer

Determine statistics about a file system node.

Parameters
Returns

StreamStat - stat object for the node.

Throws
  • Error - When given an invalid node.

▲ Top


fromSpawn

static property of streamer

Spawn a shell command.

Parameters
Returns

StreamOutput - Each chunk of either stdout or stderr data.

▲ Top


fromDirMake

static property of streamer

Creates a directory.

Parameters
Returns

StreamString - The path of the directory that was just created.

Throws
  • Error - When directory cannot be created.

▲ Top


fromDirRequire

static property of streamer

Requires a directory path, if the directory does not exists, it's created.

Parameters
Returns

Array.<StreamString> - The path of the directory.

Throws
  • Error - When requested path exists and is not a directory.

▲ Top


fromDirRead

static property of streamer

Get path of nodes in given directory (non recursively).

Parameters
Returns

Array.<StreamDirNode> - The path of the directory.

Throws
  • Error - When requested path exists and is not a directory.

▲ Top


fromDirReadRecursive

static property of streamer

Get path of nodes in given directory (recursively).

Parameters
Returns

StreamPath - The path of the directory.

Throws
  • Error - When requested path exists and is not a directory.

▲ Top


fromFileRead

static property of streamer

Reads a file from the disk.

Parameters
Returns

Observable.<string> - The contents of the file.

▲ Top


fromFileWrite

static property of streamer

Writes a file on the disk.

Parameters
Returns

Observable.<string> - The future value true if write was succesful.

Throws
  • Error - When the file cannot be written.

▲ Top


Types

Members

▲ Top


NodeOutput

static typedef of Types

Properties

▲ Top


NodePath

static typedef of Types

Properties

▲ Top


StreamBoolean

static typedef of Types

▲ Top


StreamString

static typedef of Types

▲ Top


StreamStat

static typedef of Types

A stream containing stat from node.

▲ Top


StreamOutput

static typedef of Types

A stream containing stat from node.

▲ Top


StreamPath

static typedef of Types

A stream containing stat from node.

▲ Top


StreamParamError

static typedef of Types

Thrown when a parameter is not the correct type.

▲ Top