open-index/open-npm huggingface dataset:
npm package: @klarna/aps-evaluator
Description: APS is an acronym for Accurately Parsed Score and aims to provide a unified standard for comparing parsing results and ground truths.
Author: Rickard Bergeling
Latest version: 2.0.0

# APS Evaluator

APS is an acronym for Accurately Parsed Score and aims to provide a unified standard for comparing parsing results and ground truths.

## Usage

Check the basic [example](test/index.ts)

## Development

### Installation

The project uses [Volta](https://volta.sh/) to manage node and yarn version management. Once you have volta installed you can run the following command to install dependencies:

```shell
yarn install
```

### Build

Alternatively, if you want to build and run:

```bash
yarn build
```

### Testing

```bash
yarn test
```

During development it can be helpful to run the tests automatically whenever a file is changed.
You can do this by appending the `--watch` flag.

```bash
yarn test --watch
```

### Linting

```bash
yarn lint
```

If you also want to fix any found linting errors:

```bash
yarn lint --fix
```

## How to contribute

See our guide on [contributing](.github/CONTRIBUTING.md).

## Release History

See our [changelog](CHANGELOG.md).

## License

Copyright © 2022 Klarna Bank AB

For license details, see the [LICENSE](LICENSE) file in the root of this project.

<!-- Markdown link & img dfn's -->

[ci-image]: https://img.shields.io/badge/build-passing-brightgreen?style=flat-square
[ci-url]: https://github.com/klarna-incubator/TODO
[license-image]: https://img.shields.io/badge/license-Apache%202-blue?style=flat-square
[license-url]: http://www.apache.org/licenses/LICENSE-2.0
[klarna-image]: https://img.shields.io/badge/%20-Developed%20at%20Klarna-black?style=flat-square&labelColor=ffb3c7&logo=klarna&logoColor=black
[klarna-url]: https://klarna.github.io
npm package: @klarna/disable-scroll
Description: Fix the screen to the current position and get a canvas where to draw on top of it
Latest version: 0.0.5

# @klarna/disable-scroll

[![Build Status](https://travis-ci.org/klarna/disable-scroll.svg?branch=master)](https://travis-ci.org/klarna/disable-scroll)
[![npm version](https://img.shields.io/npm/v/@klarna/disable-scroll.svg?maxAge=10000)](https://www.npmjs.com/package/@klarna/disable-scroll)


[![example of fixing a layer on top of a scrollable body](demo.gif)](https://klarna.github.io/disable-scroll)

> Demo of fixing a layer on top of a scrollable body. You can find it in [`https://klarna.github.io/disable-scroll`](https://klarna.github.io/disable-scroll)

Anchor the body to it’s current scroll position. This is super useful to be able to fix a layer on top and put modals in it.

This works around known issues of positioning modals with `position: fixed`.

This library is super small and has no dependencies.

## Installation

```
npm install --save @klarna/disable-scroll
```

## Usage

```javascript
import setupDisableScroll from '@klarna/disable-scroll'

// Initialize the tool
const {pin, release, container} = setupDisableScroll(window)

pin() // Sticks the body to the current position
release() // Releases the body so it becomes scrollable again

const p = document.createElement('p')
p.innerText = 'This will be positioned in the floating layer'
container.appendChild(p)
```

### API

The `@klarna/disable-scroll` lib exposes a function that takes the `window` and returns the following functions:

- `pin`: Sets the `top` of the `body` to match the current `scrollTop`, and then resizes the `body` to be the same width and height as the `window`.
- `release`: Resets the `scrollTop` from the `top` of the `body`, and then resets the `body` to its original size.
- `container` gives a reference to an element positioned on top of the body that can be targeted for putting modals when the body is pinned.

## License

[Apache 2.0](LICENSE)
npm package: @klarna/redux-simple-analytics
Description: Simple analytics middleware for Redux
Author: Juan Lulkin
Latest version: 0.0.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# redux-simple-analytics

Simple analytics middleware for [Redux](https://github.com/rackt/redux).

## Usage

Unlike [redux-analytics](https://github.com/markdalgleish/redux-analytics), redux-simple-analytics doesn't require a `meta` key in your actions and it also doesn't enforce FSA actions through [isFSA](https://github.com/acdlite/flux-standard-action).

Therefore, all you have to do is to create your regular actions:


```js
// constanst.js
export const MY_ACTION = 'MY_ACTION'

// actions.js
const action = {
  type: MY_ACTION
}
```

Then, write the middleware to handle your analytics tracking:

```js
/* global ga /
import constants from './constants'
import analytics from 'redux-simple-analytics'

const middleware = analytics(({ type, payload }, state) => {
  switch(type){
  case MY_ACTION:
    ga('send', 'whatever', 'you', 'want');
    break
  }
})
```

## Contributing

1. Add tests to your changes.
2. Make sure they pass running `npm test`.
3. Bump the version.
4. Add an entry to the `CHANGELOG.md`.
5. Update the `README.md` if necessary. 
6. Send a PR.