open-index/open-npm huggingface dataset:
npm package: @freik/simplelogger
Description: A very simplistic logger with filtering
Author: Kevin Frei
Latest version: 1.1.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# simplelogger
A *VERY* simplistic console.log replacement to enable filtering

## Usage:

``` javascript
const logger = require('simplelogger');
const log = logger.bind('name');
// logger.disable('name')

log("Here's my message");
log(`Or maybe ${this} instead...`);
log(this);

logger.disable('name');
log("This won't get disabled, now");

if (logger.isEnabled('name')) {
  doSomethingSlowAndBig();
}
logger('otherName', this);
logger('otherName', "will also work");
logger('name', "and this won't get displayed now");
log('But just use it this way');
log('then you can turn it on and off easily');

```

## API:

The default export is a log function that takes an initial 'labelling' parameter, which is *only* used to to control whether the log message is displayed. Thus, you can just use the thing like this:
``` javascript
const logger = require('simplelogger');
logger(1234, "<- that thing won't ever get logged");
```
But that's not really the point.

The point is to use `logger.bind` to enable you to switch all your `console.log(...)` commands over to just `log(...)` commands and then be able to turn them on and off trivially.

`simplelogger.bind(name)` returns a function that works just like `console.log`, but can be enabled or disabled using the rest of the API.

`simplelogger.disable(name)` will disable logging for any logger bound to that name.

`simplelogger.enable(name)` will enable logging for any logger bound to that name.

`simplelogger.defaultToOff()` makes the logger only show logs for names which have been *explicitly enabled* using the `enable` API.

`simplelogger.defaultToOn()` makes the logger show any logs for names unless they have been *explicitly disabled* using the `disable` API. **This is the default mode of operation.**

`simplelogger.isDisabled(name)` returns true if name has logging disabled.

`simplelogger.isEnabled(name)` returns true if name has logging enabled.
npm package: @freik/web-utils
Description: Kevin Frei's Web utilities
Author: kevinfrei@hotmail.com
Latest version: 0.5.2

# @freik/web-utils

> Some simple controls & utilities for www code, including some helpers for
> Microsoft's FluentUI components

## Fill

```javascript
<Fill direction="vertical">somethign</Fill>
```

## Dock

```javascript
<Dock location="bottom">something</Dock>
```

## FullPage

```javascript
<Fullpage>something</FullPage>
```