open-index/open-npm huggingface dataset:
npm package: @segment/elements
Description: [![Circle CI](https://circleci.com/gh/segmentio/elements.svg?style=svg&circle-token=aa1ef8979166aaea9883db7de4ff9c36d918514d)](https://circleci.com/gh/segmentio/elements)
Latest version: 0.0.56

[![Circle CI](https://circleci.com/gh/segmentio/elements.svg?style=svg&circle-token=aa1ef8979166aaea9883db7de4ff9c36d918514d)](https://circleci.com/gh/segmentio/elements)

# Segment Elements

> Library of React Components

## License (MIT)

```
WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|
```

Copyright (c) 2017 Segment.io, Inc. <friends@segment.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
npm package: @segment/equals
Description: Check if two values are deeply equivalent
Author: Jake Rosoman
Latest version: 1.1.1


# equals

  compare values of any type for equility

## Installation

With your favorite package manager:

- [packin](//github.com/jkroso/packin): `packin add equals`
- [component](//github.com/component/component#installing-packages): `component install jkroso/equals`
- [npm](//npmjs.org/doc/cli/npm-install.html): `npm install equals`

then in your app:

```js
var equal = require('equals')
```

## API

### equal(a, b, [memos])

`equal` takes as many arguments as you like of any type you like and returns a boolean result. Primitive types are equal if they are `===`. While composite types, i.e. Objects and Arrays, are considered equal if they have both the same structure and each sub-value is also `equal`. Circular references in composite structures are supported.

Same structure:
```js
equal(
  { a : [ 2, 3 ], b : [ 4 ] },
  { a : [ 2, 3 ], b : [ 4 ] }
) // => true
```

Different Structure:
```js
equal(
  { x : 5, y : [6] },
  { x : 5}
) // => false
```

Same structure, different values:

```js
equal(
  { a: [ 1, 2 ], b : [ 4 ]},
  { a: [ 2, 3 ], b : [ 4 ]}
) // => false
```

Primitives:

```js
equal(new Date(0), new Date(1)) // => false
```

Some possible gotchas:
- `null` __is not__ equal to `undefined`.
- `NaN` __is__ equal to `NaN` (normally not the case).
- `-0` __is__ equal to `+0`.
- Strings will __not__ coerce to numbers.
- Non enumerable properties will not be checked. They can't be.
- `arguments.callee` is not considered when comparing arguments
npm package: @segment/eslint-config
Description: Segment's ESLint configurations.
Author: Segment
Latest version: 5.0.0

# @segment/eslint-config

Segment's ESLint configurations.

## Installation

Install this config package and ESLint:

```sh
$ npm install --save-dev @segment/eslint-config
```

Next, install any necessary peer dependencies warned about when you ran the above command.

## Usage

This repository comes with three different main configurations: `client`, `server`, and `mocha`. Check each directory's `README.md` for usage information.

For more details about how ESLint's shareable configurations work, see the [ESLint documentation](http://eslint.org/docs/developer-guide/shareable-configs).
npm package: @segment/in-eu
Description: Privacy conscious EU detection browser library
Author: Netto Farah
Latest version: 0.4.0

# 🇪🇺 in-eu
> Privacy conscious EU detection browser library

`in-eu` is a library for roughly detecting whether a website user is in the EU, without requiring a roundtrip to your server or a lookup against a GeoIP database. 

It uses the browser's timezone (via the brilliant [jstz](https://github.com/iansinnott/jstz) and [locale](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language) (`navigator.languages`) to infer whether someone is in the EU.
`in-eu` trades absolute accuracy for a cautious approach that's more lightweight and respectful of end-user privacy.

## Usage

```bash
$ npm install @segment/in-eu
```

```javascript
import inEU from '@segment/in-eu'

inEU()
// => true | false
```

or try one of the more specific helpers:

```javascript
import { isInEUTimezone } from '@segment/in-eu'

/*
 Only checks the browser timezone.
 Useful for checking if someone is physically present in the EU
*/

isInEUTimezone()
// => true | false
```

```javascript
import { isEULocale } from '@segment/in-eu'

/*
 Only uses the browser's language/locale
 Useful for checking if someone speaks an european language accounting
 for locale. e.g. pt-PT (portuguese from Portugal)
*/

isEULocale()
// => true | false
```

## License
in-eu is released under the MIT license.
npm package: @segment/integration-sdk
Description: :mountain_cableway:Framework for building safe and reliable Segment integrations
Latest version: 2.0.0

# Introduction
The Segment Integration SDK is a framework designed to help developers build reliable integrations with Segment. Integrations built using this tool are consumers of Segment events, contrary to upstream producers of Segment events. To learn how to send events to Segment, visit our [docs](https://segment.com/docs/sources/).

# Quick Start
## Installation

With `yarn`:
```
yarn add @segment/integration-sdk
```

With `npm`:
```
npm i --save @segment/integration-sdk
```

## Basic Usage
```typescript
// index.ts
import { Integration } from '@segment/integration-sdk'
import { Track, Identify, OrderCompleted } from '@segment/spec-ts'

interface Settings {}

export class MyIntegration extends Integration {
  constructor(public settings: Settings) {
    super()
    this.subscribe('track', this.track)
    this.subscribe('identify', this.identify)
    this.subscribe('Order Completed', this.orderCompleted)
  }

  async track(event: Track) {
    console.log('Track event handled...')
  }

  async identify(event: Identify) {
    console.log('Identify event handled...')
  }

  async orderCompleted(event: OrderCompleted) {
    console.log(event.properties.revenue)
  }
}
```

# Examples
You can find a simple examples in the `/examples` directory.
npm package: @segment/legacy-each
Description: Iterate over a collection, invoking a function for each element.
Author: Segment
Latest version: 2.0.1-rc.0


Iterate over a collection, invoking a function for each element in the collection.

## Installation

```sh
$ npm install @segment/legacy-each
```

## API

### `each(iterator : Function, collection : Array|Object|string) => undefined`

Iterate over an input collection, invoking an `iterator` function for each element in the collection, passing to the iterator three arguments: `(value, index, collection)`.

The `iterator` function can end iteration early by returning `false`.

```javascript
var log = console.log.bind(console);

each(log, ['a', 'b', 'c']);
//-> 'a', 0, ['a', 'b', 'c']
//-> 'b', 1, ['a', 'b', 'c']
//-> 'c', 2, ['a', 'b', 'c']
//=> undefined

each(log, 'tim');
//-> 't', 2, 'tim'
//-> 'i', 1, 'tim'
//-> 'm', 0, 'tim'
//=> undefined

// Note: Iteration order not guaranteed across environments
each(log, { name: 'tim', occupation: 'enchanter' });
//-> 'tim', 'name', { name: 'tim', occupation: 'enchanter' }
//-> 'enchanter', 'occupation', { name: 'tim', occupation: 'enchanter' }
//=> undefined
```

## License

Released under the [MIT license](LICENSE.md).