open-index/open-npm huggingface dataset:
npm package: @supercollider/logger
Description: Console logging utility for supercollider.js for debugging with color support and special formatting for OSC messages.
Author: Chris Sattinger
Latest version: 1.0.0

# @supercollider/logger
[![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url]

<i>Console logging utility for supercollider.js for debugging with color support and special formatting for OSC messages.</i>

This is used internally by other `@supercollider` packages.

## Usage

```js
const Logger = require("@supercollider/logger").default;

const debug = true;
const echo = true;

const log = new Logger(debug, echo);
// Log an error.
log.err("Oh no!");
// Log debugging information but only if this.debug is true
log.dbug({ log: "log", some: 1, context: 2, for: "The problem" });
// Log messages that were sent to stdin or sclang.
log.stdin("1 + 1");
// Log messages that were received from stdout of sclang/scsynth.
log.stdout("2");
// Log messages that were emitted from stderr of sclang/scsynth.
log.stderr("ERROR: ...");
// Log OSC messages sent to scsynth.
log.sendosc({ address: "/ping" });
// Log OSC messages received from scsynth.
log.rcvosc({ value: "pong" });

```
<small class="source-link"><a href=https://github.com/crucialfelix/supercolliderjs/blob/develop/examples/logger.js>source</a></small>


Documentation
-------------

[Documentation](https://crucialfelix.github.io/supercolliderjs/#/packages/logger/api)

Compatibility
-------------

Works on Node 10+

Source code is written in TypeScript and is usable in JavaScript [es2018](https://2ality.com/2017/02/ecmascript-2018.html) or [TypeScript](https://www.typescriptlang.org/docs/home.html) projects.

Contribute
----------

- Issue Tracker: https://github.com/crucialfelix/supercolliderjs/issues
- Source Code: https://github.com/crucialfelix/supercolliderjs

License
-------

MIT license

[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE

[npm-url]: https://npmjs.org/package/@supercollider/logger
[npm-version-image]: http://img.shields.io/npm/v/@supercollider/logger.svg?style=flat
[npm-downloads-image]: http://img.shields.io/npm/dm/@supercollider/logger.svg?style=flat

[travis-url]: http://travis-ci.org/crucialfelix/supercolliderjs
[travis-image]: https://travis-ci.org/crucialfelix/supercolliderjs.svg?branch=master
npm package: @supercollider/osc
Description: Open Sound Control packet, bundle and buffer utilities for supercollider
Author: Chris Sattinger
Latest version: 1.0.0

# @supercollider/osc
[![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url]

<i>Open Sound Control packet, bundle and buffer utilities for supercollider</i>

- Packs OSC messages and bundles into a Node `Buffer` for sending
- Unpacks received OSC messages and bundles from a Node `Buffer`

It does not concern itself with network connections.

The OSC support is limited to the types and features of SuperCollider server.
This means it does not support inline arrays `[f]`

This is used internally by `@supercollider/server`

## Usage

```js
const osc = require('@supercollider/osc');

// TODO: DEMONSTRATE API
```

Documentation
-------------

[Documentation](https://crucialfelix.github.io/supercolliderjs/#/packages/osc/api)

Compatibility
-------------

Works on Node 10+

Source code is written in TypeScript and is usable in JavaScript [es2018](https://2ality.com/2017/02/ecmascript-2018.html) or [TypeScript](https://www.typescriptlang.org/docs/home.html) projects.

Contribute
----------

- Issue Tracker: https://github.com/crucialfelix/supercolliderjs/issues
- Source Code: https://github.com/crucialfelix/supercolliderjs

License
-------

MIT license

[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE

[npm-url]: https://npmjs.org/package/@supercollider/osc
[npm-version-image]: http://img.shields.io/npm/v/@supercollider/osc.svg?style=flat
[npm-downloads-image]: http://img.shields.io/npm/dm/@supercollider/osc.svg?style=flat

[travis-url]: http://travis-ci.org/crucialfelix/supercolliderjs
[travis-image]: https://travis-ci.org/crucialfelix/supercolliderjs.svg?branch=master
npm package: @supercollider/scapi
Description: Node to SuperCollider communication using OSC and the API quark.
Author: Chris Sattinger
Latest version: 1.0.0

# @supercollider/scapi
[![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url]

<i>Node to SuperCollider communication using OSC and the API quark.</i>

This works together with the 'API' quark to implement a simple two-way communication protocol for node <-> SuperCollider.

It connects with an sclang process using UDP OSC and then sends OSC messages to '/API/call'

The SuperCollider quark is here:
https://github.com/supercollider-quarks/API

And this package is the nodejs side.

Sent messages return a promise, the responses are received here from sclang and the promises are resolved (or rejected if there was an error).

This requires writing named handlers in SuperCollider and registering them with the API. From the node side, you make a call using that name and pass it some args and get back your response.

This was an older solution. Probably just using `@supercollider/lang` is easier now.

Note: this is not included in the [`supercolliderjs`](https://npmjs.org/package/supercolliderjs) package.

## Install

```shell
npm install @supercollider/scapi
```

Start SuperCollider
Install the API quark ( > 2.0 )

## Usage

Start SuperCollider and activate the OSC responders:

```supercollider
API.mountDuplexOSC
```

Documentation
-------------

[Documentation](https://crucialfelix.github.io/supercolliderjs/#/packages/scapi/api)

Compatibility
-------------

Works on Node 10+

Source code is written in TypeScript and is usable in JavaScript [es2018](https://2ality.com/2017/02/ecmascript-2018.html) or [TypeScript](https://www.typescriptlang.org/docs/home.html) projects.

Contribute
----------

- Issue Tracker: https://github.com/crucialfelix/supercolliderjs/issues
- Source Code: https://github.com/crucialfelix/supercolliderjs

License
-------

MIT license

[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE

[npm-url]: https://npmjs.org/package/@supercollider/scapi
[npm-version-image]: http://img.shields.io/npm/v/@supercollider/scapi.svg?style=flat
[npm-downloads-image]: http://img.shields.io/npm/dm/@supercollider/scapi.svg?style=flat

[travis-url]: http://travis-ci.org/crucialfelix/supercolliderjs
[travis-image]: https://travis-ci.org/crucialfelix/supercolliderjs.svg?branch=master
npm package: @supercolony/typechain-compiler
Description: Util to test and compile your rust project
Author: Supercolony-net
Latest version: 0.5.1-beta.1

# Typechain-Compiler

---

Utility package for compiling smart contracts, and generating TypeScript definitions & runtime code for them.

## Usage

In your project install this package:

```bash
npm i -D @supercolony/typechain-compiler
```

Now you can use it to compile smart contracts, and generate TS definitions & runtime code for them. To use typechain-compiler you need to create a config file, and pass it to the compiler.

### Config file

Config file should be in `.json` format, and should contain the following fields:

```typescript
export interface Config {
	projectFiles: string[];
	skipLinting : boolean;
	artifactsPath : string;
	typechainGeneratedPath : string;
	isWorkspace ?: boolean;
	workspacePath ?: string;
}
```

### Compiler

To compile your project, and generate TS definitions & runtime code for it, run the following command:

```bash
npx @supercolony/typechain-compiler --config path/to/config.json
```

Also you can provide additional arguments to the compiler:

```bash
Options:
      --version            Show version number                         [boolean]
  -c, --config             Config file path
                                  [string] [required] [default: "./config.json"]
  -r, --release            Compile with release
                                           [boolean] [required] [default: false]
      --noCompile, --nc    Compile         [boolean] [required] [default: false]
      --noTypechain, --nt  Compile typechain code
                                           [boolean] [required] [default: false]
  -h, --help               Show help                                   [boolean]
```