open-index/open-npm huggingface dataset:
npm package: @jsspec/format
Description: Output formatter for jsspec
Author: HookyQR
Latest version: 0.1.7

# @jsspec/format
[![npm (scoped)](https://img.shields.io/npm/v/@jsspec/format?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/@jsspec/format)
[![Travis](https://img.shields.io/travis/jsspec/format/master.svg?logo=travis&style=for-the-badge)](https://travis-ci.org/jsspec/format)
[![AppVeyor](https://img.shields.io/appveyor/ci/HookyQR/format/master.svg?logo=appveyor&style=for-the-badge)](https://ci.appveyor.com/project/HookyQR/format)

Default reporter formatters for jsspec.

```javascript
class MyFormatter {
  static get description() { return 'I write stuff to the screen'; }
  constructor(specRunner){}
}
```

subscribe to specRunner events:
```javascript
  specRunner.on('fileStart' (uniqueFileRunReference, fileName) => {});
  specRunner.on('fileEnd' (uniqueFileRunReference, fileName) => {});
  specRunner.on('contextStart' (specRunner, context) => {});
  specRunner.on('contextEnd' (specRunner, context) => {});
  specRunner.on('exampleStart' (specRunner, example) => {});
  specRunner.on('exampleEnd' (specRunner, example) => {});
  specRunner.on('contextLevelFailure', (specRunner, exampleOrContext) => {});
  specRunner.on('runEnd' (specRunner) => {});
```

`context`, `example` and `exampleOrContext` each respond to the following:
```javascript
id // [For a conetxt only] a unique name for this context
description // the description supplied
fullDescription // the description, with all context descriptions pre-pended
kind // the class name of the object
base // a uniq name relating to this spec file run
failure // which may be (hopefully) undefined
```

`failure` is either an exception, or an exception converted to an object, depending on how `JSSpec` was run. It will have the following attributes:
```javascript
constructor.name
stack
message
expected // may be empty
actual // may be empty
```

Formatters included:
## `Null`
Does nothing. Use with `--format null`. Can be used as a base class to create other formatters.

## `Documentation`
`-fd` or `--format documentation`. Presents a tree of execution results with checks and crosses for example results. A summary of failures are provided at the end.

## `Dot`
`-fo` or `--format dot`. Single character output per test. With summary at the end.
npm package: @jsstore/tools
Description: Tools for angular projects.
Author: akgurjar
Latest version: 1.1.0

# @jsstore/tools
Tools for angular projects.

## Operators
### 1. tillAllive
  A operator to unsubscribe observables before destroying angular elements like components, directives and pipes etc.

```ts
  import { tillAlive } from '@jsstore/tools';
  
  @Component()
  class MyComponent implements OnDestroy {
    constructor() {
        observable.pipe(tillAlive(this)).subscribe((value) => {
            # use value
        });
    }
    ngOnDestroy() {}
  }
```

## Authors
1. [Ashish Gurjar](https://github.com/akgurjar)

## Licence
[MIT v3](LICENSE)
npm package: @jstable/jstable
Description: a lightweight, dependency-free JavaScript plugin which makes a HTML table interactive
Latest version: 1.6.6

# JSTable

The JSTable is a lightweight, dependency-free JavaScript plugin which makes a HTML table interactive.

The plugin is similar to the [jQuery datatables](https://datatables.net/) but without the jQuery dependencies.

The implementation is inspired by [Vanilla-DataTables](https://github.com/Mobius1/Vanilla-DataTables). Unlike Vanilla-Datatables this implementation is using the in ES6 introduced [classes](https://www.w3schools.com/js/js_classes.asp).  
Additionally JSTable includes the possibility for server side rendering, which is inspired by [jQuery datatables](https://datatables.net/manual/server-side).

You can get more information about the usage on [https://jstable.github.io/](https://jstable.github.io/).

## Install

* Clone the [github repository](https://github.com/jstable/JSTable)
* Include the stylesheet and JavaScript files from the `dist` folder:

```
<link rel="stylesheet" type="text/css" href="/dist/jstable.css">
```
```
<script type="text/javascript" src="/dist/jstable.min.js"></script>
```
* If the target browser does not support not all ES2015+ features you need to include the `es5` version:
```
<script type="text/javascript" src="/dist/jstable.es5.min.js"></script>
```
* If the target browser does not support fetch you need to include the following polyfills:
```
<script type="text/javascript" src="/dist/polyfill-fetch.min.js"></script>
```

## Initialize

The HTML table needs a `thead` and `tbody` section.

#### Example table
```
<table id="basic">
    <thead>
        <tr>
            <th>Name</th>
            <th>Country</th>
            <th>Date</th>
            <th>Number</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>Norman Small</td>
            <td>Tokelau</td>
            <td>2020-02-01 07:22:40</td>
            <td>8243</td>
        </tr>
            ...
    </tbody>
</table>
```

#### JavaScript

The JSTable can be initialized by passing a reference or a CSS3 selector as string:
```
let myTable = new JSTable("#basic");
```
or
```
let table = document.getElementById('basic');
let myTable = new JSTable(table);
```
[Options](https://jstable.github.io/options.html) can be passed as second argument:

```
let myTable = new JSTable("#basic", {
    sortable: true,
    searchable: false,
    ...
});
```