open-index/open-npm huggingface dataset:
npm package: @nkravella/tinytest
Description: Removes all spaces from a string
Latest version: 2.0.0

# a very tiny and unnecessary npm package 🐣👶🏽

[![npm (scoped)](https://img.shields.io/npm/v/@nkravella/tinytest.svg)](https://www.npmjs.com/package/@nkravella/tinytest)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@bamblehorse/tiny.svg)](https://www.npmjs.com/package/@nkravella/tinytest)

Removes all spaces from a string. Learned from @bamblehorse's "tiny" demonstration.

## Install

```
$ npm install @nkravella/tinytest
```

## Usage

```js
const tinytest = require("@nkravella/tinytest");

tinytest("Why are        we  typing like      this?");

// OUTPUT=> "Whyarewetypinglikethis?"
```
npm package: @nks/contextvars
Description: rspec inspired context variables for Jest
Author: Noah Silas
Latest version: 0.1.0

# contextvars
rspec inspired context variables for Jest

## Scoped assignment to context variables

```js
const contextVars = require('@nks/contextvars');
const EmailSender = ... // fake unit under test

describe('EmailSender#send', () => {

  // sets up overridable context variables
  const ctx = contextVars({
    to: 'me@noahsilas.com',
    from: 'alice@example.com',
    subject: 'Hey check it out',
  });

  // You can use them in a beforeEach block to set up complex objects.
  // This object will be instantiated with the context set up at each
  // scoping level the way you expect it to be
  let sender;
  beforeEach(() => {
    sender = new EmailSender({
      to: ctx.to,
      from: ctx.from,
      subject: ctx.subject,
    });
  });

  it('sends an email', () => {
    return expect(sender.send()).resolves.to({ sent: true });
  });

  describe('when the subject is blank', () => {

    // You can override variables within a nested scope
    ctx.assign({ subject: '' });

    // Or add entirely new ones
    ctx.assign({ cc: 'bob@example.com' });

    it('throws', () => {
      return expect(() => sender.send()).rejects.toThrow(/empty subject/);
    });
  });
});
```

## Caveats

This library uses Proxy objects (originally defined in ECMAScript 2015), which
don't have universal support.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy#Browser_compatibility

## Related Projects

*[Given2](https://github.com/tatyshev/given2):* A more mature project using a
similar beforeAll/beforeEach approach, but requires that variables be defined
with functions. It also has broader test runner support, but uses some tricker
tools to make the raw property access syntax work.
npm package: @nksaraf/recoil
Description: Recoil - A state management library for React
Latest version: 0.0.10-patch.4

# Recoil &middot; [![Node.js CI](https://github.com/facebookexperimental/Recoil/workflows/Node.js%20CI/badge.svg)](https://github.com/facebookexperimental/Recoil/actions) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebookexperimental/Recoil/blob/master/LICENSE)

Recoil is an experimental set of utilities for state management with React.

Please see the website: https://recoiljs.org

## Installation

The Recoil package lives in [npm](https://www.npmjs.com/get-npm). To install the latest stable version, run the following command:

```shell
npm install recoil
```

Or if you're using [yarn](https://classic.yarnpkg.com/en/docs/install/):

```shell
yarn add recoil
```

## Contributing

Development of Recoil happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Recoil.

- [Code of Conduct](./CODE_OF_CONDUCT.md)
- [Contributing Guide](./CONTRIBUTING.md)

### License

Recoil is [MIT licensed](./LICENSE).
npm package: @nksaraf/relay-runtime
Description: A core runtime for building GraphQL-driven applications.
Latest version: 12.0.0

Relay Runtime
---

A set of Relay APIs responsible for data fetching, reading and normalization of
the GraphQL data.

Example:

```js

// @flow strict-local

import type {FetchFunction} from 'relay-runtime';

const {
  Environment,
  Network,
  Observable,
  RecordSource,
  Store,
  fetchQuery,
  graphql,
} = require('relay-runtime');

const fetchFn: FetchFunction = function (request, variables) {
  return new Observable.create(source => {
    fetch('/my-graphql-api', {
      method: 'POST',
      body: JSON.stringify({
        text: request.text,
        variables,
      }),
    })
      .then(response => response.json())
      .then(data => source.next(data));
  });
};

const network = Network.create(fetchFn);
const store = new Store(new RecordSource());
const environment = new Environment({
  network,
  store,
});

fetchQuery(
  environment,
  graphql`
    query AppQuery($id: ID!) {
      user(id: $id) {
        name
      }
    }
  `,
  {id: 'my-node-id'},
).subscribe({
  error: error => {
    console.error(error);
  },
  next: data => {
    console.log(data);
  },
});

```

For complete API reference, visit https://relay.dev/.
npm package: @nkshio/rangecollection
Description: Add, remove, print from a collection of numeric ranges 
Author: Ankush Mehta
Latest version: 1.2.1

# RangeCollection
[![Build Status](https://travis-ci.org/nkshio/RangeCollection.svg?branch=master)](https://travis-ci.org/nkshio/RangeCollection) [![Coverage Status](https://coveralls.io/repos/nkshio/RangeCollection/badge.svg?branch=master)](https://coveralls.io/r/nkshio/RangeCollection?branch=master) [![Issues](https://img.shields.io/github/issues/nkshio/RangeCollection.svg)](https://github.com/nkshio/RangeCollection/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) [![dependencies Status](https://david-dm.org/nkshio/RangeCollection/status.svg)](https://david-dm.org/nkshio/RangeCollection) [![devDependencies Status](https://david-dm.org/nkshio/RangeCollection/dev-status.svg)](https://david-dm.org/nkshio/RangeCollection?type=dev) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Downloads](https://img.shields.io/npm/dt/@nkshio/rangecollection.svg)](https://www.npmjs.com/package/@nkshio/rangecollection)

A `RangeCollection` class manages a collection of numeric ranges. 

Given, a `Range` is a pair of integers for example: [1, 5). This range includes integers: 1, 2, 3, and 4. 

## Installation

Use the package manager [npm](https://www.npmjs.com/) to install `RangeCollection`.

### Commands
- `npm install` - Install dependencies
- `npm run clean` - Remove `lib/` directory
- `npm test` - Run tests with linting and coverage results.
- `npm run test:examples` - Test written examples on pure JS for better understanding module usage.
- `npm run lint` - Run ESlint with airbnb-config
- `npm run cover` - Get coverage report for your code.
- `npm run build` - Babel will transpile ES6 => ES5 and minify the code.

## Usage
```javascript
const RangeCollection = require('./RangeCollection');

const range = new RangeCollection();

range.add([10, 100])
range.print();
// '[10, 100)'

range.add([200, 300])
range.print();
// '[10, 100) [200, 300)'

range.remove([40, 50])
range.print();
// '[10, 40) [50, 100) [200, 300)'
```


# License
MIT © Ankush Mehta