Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Overhaul console module #14

Merged
merged 5 commits into from
Jun 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ scala:
- 2.12.8
- 2.13.0

env:
- TRAVIS_NODE_VERSION="12.5.0"

jdk:
- openjdk8
- openjdk11

install:
- rm -rf ~/.nvm &&
git clone https://github.com/nvm-sh/nvm.git ~/.nvm &&
(cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) &&
source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION

script:
- sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck test

Expand Down
57 changes: 29 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,35 @@ libraryDependencies += "net.exoego" %%% "scala-js-nodejs-v8" % "0.8.0"

### Supported Modules

The following core Node.js modules (v8.7.0) have been implemented:

| Node Module | Description |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| assert | Provides a simple set of assertion tests that can be used to test invariants. |
| buffer | The Buffer class was introduced as part of the Node.js API to make it possible to interact with octet streams in the context of things like TCP streams and file system operations. |
| child_process | The child_process module provides the ability to spawn child processes. |
| cluster | The cluster module allows you to easily create child processes that all share server ports. |
| crypto | The crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign and verify functions. |
| dns | Support for DNS queries. |
| events | Node.js Events Interface |
| fs | File I/O is provided by simple wrappers around standard POSIX functions. |
| http | Node.js HTTP Interface |
| https | Node.js HTTPS Interface |
| net | The net module provides you with an asynchronous network wrapper. |
| os | Provides a few basic operating-system related utility functions. |
| path | This module contains utilities for handling and transforming file paths. |
| querystring | The querystring module provides utilities for parsing and formatting URL query strings. |
| readline | Readline allows reading of a stream on a line-by-line basis. |
| repl | The REPL provides a way to interactively run JavaScript and see the results. |
| stream | A stream is an abstract interface implemented by various objects in Node.js. |
| string-decoder | The string_decoder module provides an API for decoding Buffer objects into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 characters. |
| timers | The timer module exposes a global API for scheduling functions to be called at some future period of time. |
| tty | The tty module provides the tty.ReadStream and tty.WriteStream classes. |
| url | The url module provides utilities for URL resolution and parsing. |
| util | The util module is primarily designed to support the needs of Node.js's internal APIs. |
| vm | The vm module provides APIs for compiling and running code within V8 Virtual Machine contexts. |
| zlib | This provides bindings to Gzip/Gunzip, Deflate/Inflate, and DeflateRaw/InflateRaw classes. |
The following core Node.js modules (v8.7.0+) have been implemented:

| Node Module | Description | v10 & v12 support |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |
| assert | Provides a simple set of assertion tests that can be used to test invariants. | |
| buffer | The Buffer class was introduced as part of the Node.js API to make it possible to interact with octet streams in the context of things like TCP streams and file system operations. | |
| child_process | The child_process module provides the ability to spawn child processes. | |
| cluster | The cluster module allows you to easily create child processes that all share server ports. | |
| console | The `console` module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers. | :heavy_check_mark: |
| crypto | The crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign and verify functions. | |
| dns | Support for DNS queries. | |
| events | Node.js Events Interface | |
| fs | File I/O is provided by simple wrappers around standard POSIX functions. | |
| http | Node.js HTTP Interface | |
| https | Node.js HTTPS Interface | |
| net | The net module provides you with an asynchronous network wrapper. | |
| os | Provides a few basic operating-system related utility functions. | |
| path | This module contains utilities for handling and transforming file paths. | |
| querystring | The querystring module provides utilities for parsing and formatting URL query strings. | |
| readline | Readline allows reading of a stream on a line-by-line basis. | |
| repl | The REPL provides a way to interactively run JavaScript and see the results. | |
| stream | A stream is an abstract interface implemented by various objects in Node.js. | |
| string-decoder | The string_decoder module provides an API for decoding Buffer objects into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 characters. | |
| timers | The timer module exposes a global API for scheduling functions to be called at some future period of time. | |
| tty | The tty module provides the tty.ReadStream and tty.WriteStream classes. | |
| url | The url module provides utilities for URL resolution and parsing. | |
| util | The util module is primarily designed to support the needs of Node.js's internal APIs. | |
| vm | The vm module provides APIs for compiling and running code within V8 Virtual Machine contexts. | |
| zlib | This provides bindings to Gzip/Gunzip, Deflate/Inflate, and DeflateRaw/InflateRaw classes. | |

## Example of code

Expand Down
156 changes: 0 additions & 156 deletions app/current/src/main/scala/io/scalajs/nodejs/Console.scala

This file was deleted.

2 changes: 1 addition & 1 deletion app/current/src/main/scala/io/scalajs/nodejs/Global.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ trait Global extends js.Object {

def clearTimeout: ClearTimeout = js.native

def console: Console = js.native
def console: console_module.Console = js.native

def process: Process = js.native

Expand Down
Loading