open-index/open-npm huggingface dataset:
npm package: 2keys
Description: Alternate and slightly faster implementation of [map2](https://www.npmjs.com/package/map2) and [set2](https://www.npmjs.com/package/set2) allowing you to use more than one key as the key
Latest version: 1.1.0

Alternate and slightly faster implementation of [map2](https://www.npmjs.com/package/map2) and [set2](https://www.npmjs.com/package/set2) allowing you to use more than one key as the key

✅ Performance guarantee. Found a faster implementation? Make an issue on our github!

- ES6 support
- Available in global scope
- `Map2` & `Set2`
- Can be used exactly like existing `Set` and `Map`
- Support for `.swap()` and `.pop()`


```js
import '2keys'

const map = new Map()
map.set([1, 2], 3)
map.get([1, 2])
// => undefined
// ES6 map is by reference, not value

const map = new Map2()
map.set(1, 2, 3)
map.get(1, 2)
// => 3
const x = {}, y = []
map.set(x, y, {a: 1})
map.get(x, y)
// => {a: 1}
map.has(x, y)
// true
map.delete(x, y)
map.get(x, y)
// => undefined

const map = new Map2([
	[1, 2, 3],
	[1, 5, 6],
	[2, 10, 12],
])
map.set(3, 4, 7).set(9, 9, 9)
map.size
// => 5

for(const [k1, k2, v] of map){
	console.log(k1, k2, v)
}
// 1 2 3
// 1 5 6
// 2 10 12
// 3 4 7
// 9 9 9

console.log([...map.values()])
// => [3, 6, 12, 7, 9]
console.log([...map.keys()])
// => [[1, 2], [1, 5], [2, 10], [3, 4], [9, 9]]
console.log(map.submap(1))
// => Map(2) { 2 => 3, 5 => 6 }
console.log(map)
// Map2(4) { (1, 2) => 3, (1, 5) => 6, (2, 10) => 12, (3, 4) => 7, (9, 9) => 9 }
map.clear()


const set = new Set2()

// Chaining works on both set and map
set.add(1, 2).add(3, 4)
set.swap(5, 5)
// => false
set
// Set2(3) { (1, 2), (3, 4), (5, 5) }
set.swap(5, 5)
// => true  (entry was present, set unchanged)

for(const [a, b] of set){
	console.log(a, b)
}
// 1 2
// 3 4
// 5 5
```
npm package: 2klic-hapi-bunyan
Description: Simple Bunyan logging in Hapi forked from https://github.com/silas/hapi-bunyan
Author: Kam Lall && Silas Sewell
Latest version: 0.0.1


Note that this package is a fork of https://github.com/silas/hapi-bunyan with minor changes to support 2klic's API server.
npm package: 2klic-sdk
Description: Javascript SDK for 2klic API
Author: Joel Lavoie
Latest version: 2.16.8

# 2Klic.io SDK

## Installing the library from the private repository

bower install 2klic-sdk --save

## Getting Started

Include the library in your index.html

    <script src="bower_components/dist/sdk.js"></script>


Instantiate a new engine: 

    var platform = new Klic();
    
By default, the engine will point to https://api.2klic.io. If you want to work with a local development engine, just use the url option:

    var platform = new Klic({url: 'http://localhost:5000'});
    
2Klic.io is using JWT tokens for authentication. In order to use most of the available methods and helpers, you need to retrieve a valid token.

### How to instantiate in Node:

    var Klic = require('@2klic/2klic-sdk');
    var KlicSDK = new Klic();
    KlicSDK.devices.list().then(function(devices){
        console.log(devices);
        return devices
    });

### Configuring our SDK to retrieve a token

You need to set the following options in order to retrieve a valid token:

    url: Url of the 2klic.io instance you want to use. default to https://api.2klic.io
    auth: {
        token: An existing token (previously retrieved) or nothing
    },
    unsafe: true indicates that we're in an unsafe environment (client app, browser, etc)
    app_key : The key of the app as provided by 2klic.io
    app_secret: Optional. The secret if you are in a safe environment (do not use for client or browser app)

With these options you can instantiate the Klic instance:

    var platform = new Klic({
        unsafe: isClient,
        app_key: "b2423a98430c03213d7ad86033622f5066a44b69"
    });

Note that we haven't provided any token as we don't have one yet.

### Retrieving a valid token

You execute the authenticate method to retrieve your token :

    platform.authenticate({username:username, password:password}).then(function(result) {

        // Save the token for subsequent calls
        platform.auth = {
            token: result.token
        };

    });
npm package: 2klic_io-sdk
Description: Javascript SDK for 2klic API
Author: Joel Lavoie
Latest version: 2.40.4

# 2Klic.io SDK

## Installing the library from the private repository

bower install 2klic-sdk --save

## Getting Started

Include the library in your index.html

    <script src="bower_components/dist/sdk.js"></script>

Instantiate a new engine: 

    var platform = new Klic();
    
By default, the engine will point to https://api.2klic.io. If you want to work with a local development engine, just use the url option:

    var platform = new Klic({url: 'http://localhost:5000'});
    
2Klic.io is using JWT tokens for authentication. In order to use most of the available methods and helpers, you need to retrieve a valid token.

### How to instantiate in Node:

    var Klic = require('@2klic/2klic-sdk');
    var KlicSDK = new Klic();
    KlicSDK.devices.list().then(function(devices){
        console.log(devices);
        return devices
    });

### Configuring our SDK to retrieve a token

You need to set the following options in order to retrieve a valid token:

    url: Url of the 2klic.io instance you want to use. default to https://api.2klic.io
    auth: {
        token: An existing token (previously retrieved) or nothing
    },
    unsafe: true indicates that we're in an unsafe environment (client app, browser, etc)
    app_key : The key of the app as provided by 2klic.io
    app_secret: Optional. The secret if you are in a safe environment (do not use for client or browser app)

With these options you can instantiate the Klic instance:

    var platform = new Klic({
        unsafe: isClient,
        app_key: "b2423a98430c03213d7ad86033622f5066a44b69"
    });

Note that we haven't provided any token as we don't have one yet.

### Retrieving a valid token

You execute the authenticate method to retrieve your token :

    platform.authenticate({username:username, password:password}).then(function(result) {

        // Save the token for subsequent calls
        platform.auth = {
            token: result.token
        };

    });
npm package: 2lc-uikit
Description: Set of UI components for pancake projects
Author: ThangPham
Latest version: 1.0.2

2LC UIkit is a set of React components and hooks used to build pages on 2LC's apps. It also contains a theme file for dark and light mode.

## Install

yarn add 2lc-uikit

You can see UI design with this command

### Setup
Before using 2LC UIkit, you need to provide the theme file to styled-component.

import { ThemeProvider } from 'styled-components'
import { light, dark } from '2lc-uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>

yarn build

### Reset

A reset CSS is available as a global styled component.

import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />

#### Types
This project is built with Typescript and export all the relevant types.


##### How to use the UIkit
If you want to use components from the UIkit, check the Storybook documentation