An open API service indexing awesome lists of open source software.

https://github.com/ckampfe/console_log

A console_log macro for web_sys
https://github.com/ckampfe/console_log

Last synced: about 1 year ago
JSON representation

A console_log macro for web_sys

Awesome Lists containing this project

README

          

# console_log

A `console_log` macro for `web_sys`:

```
console_log!();
console_log!("one");
console_log!("one", "two");
console_log!("one", "two", "three");
console_log!("one", "two", "three", "four");
console_log!("one", "two", "three", "four", "five");
console_log!("one", "two", "three", "four", "five", "six");
console_log!("one", "two", "three", "four", "five", "six", "seven");
console_log!("one", String::from("two"), true, 4u8, 5u16, 6u32, 7.0);
```

## testing

Either:

```
$ wasm-pack test --node
```

or

```
$ cargo install wasm-bindgen-cli
$ cargo test --target wasm32-unknown-unknown
```