open-index/open-npm huggingface dataset:
npm package: @senspark/ee
Description: utility library for cocos creator
Author: senspark
Latest version: 2.0.0

# EE-JS Utility library for Cocos Creator

[![npm version](https://img.shields.io/npm/v/@senspark/ee.svg)](https://www.npmjs.com/package/@senspark/ee)

## Prerequisite

- Install [brew](https://brew.sh/)
- Install node.js: `brew install node`

## Installation

- Project directory structure:

```
project-dir
├─── assets
├─── node_modules
├─── packages
...
```

- Install @senspark/ee: `npm install @senspark/ee@latest`
- Create a symbolic link to source files: `ln -s ./../node_modules/@senspark/ee/src/utils ./assets/ee` (Can be changed depends on your project hierarchy)
- Create a symbolic link to package files (for inspectors): `ln -s ./../node_modules/@senspark/ee/packages ./packages/ee`
- Modify `tsconfig.json` to fix compile errors in VS Code:

```json
{
  "include": [
    "node_modules/@senspark/ee/src"
  ]
}
```

- Modify `.gitignore` to keep `.meta` files (generated by Cocos Creator):

```
node_modules/**
!node_modules/**/
!node_modules/**/*.meta
```

## Features

### NestedPrefab

- Use this component as an alternative to nested prefabs which is not supported in Cocos Creator.

### HsvComponent

- Provide Hue/Saturation/Value adjustment for sprites.

### LanguageComponent/LanguageManager

- Provide multilingual features.

### Cocos2dFwd

- Declare classes for TypeScript.
npm package: @senstate/cli
Description: [![Build Status][build-img]][build-url] [![Code Coverage][cov-img]][cov-url] [![NPM Version][npm-img]][npm-url] [![Package Size][size-img]][size-url] [![LGTM Grade][lgtm-img]][lgtm-url] [![Known Vulnerabilities][snyk-img]][snyk-url]
Author: Eugen Bolz
Latest version: 0.3.1

# Welcome to senstate 👋

[![Build Status][build-img]][build-url]
[![Code Coverage][cov-img]][cov-url]
[![NPM Version][npm-img]][npm-url]
[![Package Size][size-img]][size-url]
[![LGTM Grade][lgtm-img]][lgtm-url]
[![Known Vulnerabilities][snyk-img]][snyk-url]

[build-img]: https://github.com/senstate/platform/workflows/Pull-Request%20CI/badge.svg
[build-url]: https://github.com/senstate/platform/actions?query=workflow%3A%22Pull-Request+CI%22
[cov-img]: https://codecov.io/gh/senstate/platform/branch/master/graph/badge.svg
[cov-url]: https://codecov.io/gh/senstate/platform
[npm-img]: https://img.shields.io/npm/v/@senstate/cli.svg?
[npm-url]: https://www.npmjs.com/package/@senstate/cli
[size-img]: https://img.shields.io/bundlephobia/minzip/@senstate/cli.svg
[size-url]: https://bundlephobia.com/result?p=@senstate/cli
[lgtm-img]: https://img.shields.io/lgtm/grade/javascript/g/senstate/platform.svg
[lgtm-url]: https://lgtm.com/projects/g/senstate/platform
[snyk-img]: https://snyk.io/test/npm/@senstate/cli/badge.svg
[snyk-url]: https://snyk.io/test/npm/@senstate/cli

> Send your state / variables to the Debug Dashboard while developing :tada:

![Senstate Example Gif](https://user-images.githubusercontent.com/842273/69455419-a4bf9400-0d68-11ea-953d-9c0b6ffe3e75.gif)

> Current workflow:

![Senstate Current Workflow](readme_assets/senstate-current-workflow.svg)

## Articles / Tutorial

>[Introduction](https://dev.to/negue/senstate-make-sense-of-your-state-while-debugging-96f)

## Install Dashboard

```sh
npm install @senstate/cli
```

## Usage

```sh
senstate
```

or

```sh
npx @senstate/cli
```

## Client-Libraries

| Language | Link              | Author                  |
| -------- | ----------------- | ----------------------- |
| JS/TS    | [Repo][repo_js]   | [negue][user_negue]     |
| C#       | [Repo][repo_csharp]   | [negue][user_negue]     |
| Add yours| [Spec][SpecURL]    | |

[repo_js]: https://github.com/senstate/platform/blob/master/libs/client/README.md
[repo_csharp]: https://github.com/senstate/csharp-client

[user_negue]: https://github.com/negue

All clients connect with web-sockets, here are the current [specs][SpecURL].

[SpecURL]: api.spec.md

If you use the same static App-Id, you can keep the Watchers / Logger / Errors between App-restarts.

## TODO / In progress

- more to come :)
- idea? open an issue :)

## Show your support

Give a ⭐️ if this project helped you!

If you have features / ideas, open an issue :)

***

_This README was generated with ❤️ by [readme-md-generator]._

[readme-md-generator]: https://github.com/kefranabg/readme-md-generator
npm package: @sensu/color-extractor
Description: Extract color palettes from images
Author: SENSU K. K.
Latest version: 1.1.2

# color-extractor [![build status](https://secure.travis-ci.org/sen-su/color-extractor.png)](http://travis-ci.org/sen-su/color-extractor)

## An updated fork of node-colour-extractor with proper error handling and tests

Extract color palettes from photos using Node.js.

## Installation

Is as simple as with any other Node.js module:

    $ npm install color-extractor

NOTE: `color-extractor` depends on [gm](http://aheckmann.github.com/gm/) module, which in turn depends on [GraphicsMagick](http://www.graphicsmagick.org).

## Sample
![sample](http://i.imgur.com/8aWnu5W.png)

## Usage

`color-extractor` exports two functions:

    ce = require('color-extractor')
    ce.topColors('Photos/Cats/01.jpg', function (error, colors) {
      console.log(colors);
    });

`topColors` function takes two arguments:

  * path to your photo,
  * a callback function.

Callback function will be passed an `Array` with RGB triplet of each color and its frequency:

    [
      [1,   [46, 70, 118]],
      [0.3, [0,   0,   2]],
      [0.2, [12,  44,  11]]
    ]

The second function, `colorKey`, returns an array with nine colors, where each one can be mapped to a 3x3 box, ie. super-pixelised representation of the photo.

    ce.colorKey('Photos/Cats/999999.jpg', function (error, colors) {
      database.store('color-keys', photoId, colors);
      res.send(colors);
      // render colors to user while they wait for the photo to load.
      // (or something equally brilliant)
    });


### Utilities

`color-extractor` exports two more utility functions:

    > ce.rgb2hex(100, 10, 12);
    '#640a0c'
    > ce.rgb2hex([44, 44, 44]);
    '#2c2c2c'
    > ce.hex2rgb('#ffffff');
    [255, 255, 255]
    > ce.hex2rgb('45c092')
    [69, 192, 146]

## License

color-extractor is published under MIT license, please see the LICENSE file for full details.

Photos used in the sample can be downloaded from Flickr:

  * [Title?](http://www.flickr.com/photos/chavals/2941676828)
  * [nel profondo del blu](http://www.flickr.com/photos/shamballah/2038749488)
  * [Reykjavík revisited](http://www.flickr.com/photos/giesenbauer/4951425521)
npm package: @sensu/couch-pwd
Description: CouchDB salt and password generation with PBKDF2
Author: Mirco Zeiss
Latest version: 1.0.1


# @sensu/couch-pwd [![Build Status](https://travis-ci.org/sen-su/couch-pwd.svg?branch=master)](https://travis-ci.org/sen-su/couch-pwd)

## An up-to-date version of couch-pwd that is actually published.

Hash and compare passwords with the crypto's pbkdf2.
Heavily inspired by [node-pwd](https://github.com/visionmedia/node-pwd).

Uses the following values as defaults

- iterations = 10
- keylen = 20
- size = 16
- encoding = 'hex'

The resulting salt and password Strings are the same you'd get when you save a
user to CouchDB and let CouchDB do all the hashing for you.

Module has two goals

- verify user passwords without making requests to `/_session` API
- use the same hashing algorithm for other databases

## Installation

```bash
npm install couch-pwd
```

## Example

On signup generate a salt / password hash, and save it somewhere:

```js
var pwd = require('couch-pwd');
pwd.hash('my password', function(err, salt, hash){
  user.salt = salt;
  user.hash = hash;
})
```

To authenticate load and compare:

```js
var pwd = require('couch-pwd');
pwd.hash('submitted password', user.salt, function(err, hash){
  if (user.hash == hash) {
    // yay
  }
})
```

## License

MIT
npm package: @sensu/tsc-watch
Description: The TypeScript compiler with onSuccess command
Author: Gil Amran
Latest version: 1.1.0

# The TypeScript compiler with `--watch` and a new onSuccess argument
`tsc-watch` starts the `tsc` (TypeScript compiler) with `--watch` parameter, it also adds a new argument `--onSuccess COMMAND`. this `COMMAND` will be executed on every successful TypeScript compilation.

## Install

```sh
npm install tsc-watch --save-dev
```

## Usage

```sh
tsc-watch server.ts --outDir ./dist --onSuccess "node ./dist/server.ts"
```


Notes:
* The `COMMAND` will not run if the compilation failed.
* The child process (`COMMAND`) will be terminated before creating a new one.
* `tsc-watch` is using the currently installed TypeScript compiler.
* `tsc-watch` is not changing the compiler, just adds the new arguments, compilation is the same, and all other arguments are the same.
* `tsc-watch` was created to allow an easy dev process with TypeScript. Commonly used to restart a node server.
npm package: @sensuapp/eslint-config
Description: Sensu's ESLint config
Author: James Phillips
Latest version: 1.5.0

# @sensuapp/eslint-config

This package provides Sensu's core Javascript ESLint settings as an extensible
configuration.

![version](http://img.shields.io/npm/v/@sensuapp/eslint-config.svg?style=flat-square)
![license](http://img.shields.io/npm/l/@sensuapp/eslint-config.svg?style=flat-square)
![build](https://img.shields.io/travis/sensu/eslint-config/master.svg?style=flat-square)

## Usage

First, add the package to your project.

```sh
yarn add --dev eslint @sensuapp/eslint-config

# or with npm

npm install --save-dev eslint @sensuapp/eslint-config
```

If you did not already have an `.eslintrc` file you can add one.

```sh
./node_modules/.bin/eslint --init
```

Finally, add the following to your `.eslintrc`.

```json
{
  "extends": [
    "@sensuapp/eslint-config"
  ]
}
```
npm package: @sensuapp/eslint-config-apollo
Description: Sensu's ESLint config (for use with apollo-graphql.)
Author: James Phillips
Latest version: 1.5.0

# @sensuapp/eslint-config-apollo

This package provides Sensu's
[Apollo GraphQL](https://www.apollographql.com/client/)
[ESLint](https://eslint.org) settings as an extensible configuration.

![version](http://img.shields.io/npm/v/eslint-config.svg?style=flat-square)
![license](http://img.shields.io/npm/l/eslint-config.svg?style=flat-square)
![build](https://img.shields.io/travis/sensu/eslint-config/master.svg?style=flat-square)

## Usage

First, add the package to your project.

```sh
yarn add --dev eslint @sensuapp/eslint-config-apollo

# or with npm

npm install --save-dev eslint @sensuapp/eslint-config-apollo
```

If you did not already have an `.eslintrc` file you can add one.

```sh
./node_modules/.bin/eslint --init
```

Finally, add the following to your `.eslintrc`.

```json
{
  "extends": [
    "@sensuapp/eslint-config",
    "@sensuapp/eslint-config-apollo",
  ]
}
```

### graphql-config

The plugin assumes that you have a `.graphqlrc` file present. See
[graphql-config](https://github.com/graphcool/graphql-config#usage) for more
details on it's options.

```json
{
  "schemaPath": "schema.graphql",
  "includes": ["*.graphql"],
  "excludes": ["tmp/**"]
}
```
npm package: @sensuapp/eslint-config-flow
Description: Sensu's ESLint config (for use with Flow.)
Author: James Phillips
Latest version: 1.5.0

# Unmaintained

No longer maintained, kept for historical purposes.

# @sensuapp/eslint-config-flow

This package provides Sensu's Flowtype ESLint settings as an extensible
configuration.

![version](http://img.shields.io/npm/v/eslint-config.svg?style=flat-square)
![license](http://img.shields.io/npm/l/eslint-config.svg?style=flat-square)
![build](https://img.shields.io/travis/sensu/eslint-config/master.svg?style=flat-square)

## Usage

First, add the package to your project.

```sh
yarn add --dev eslint @sensuapp/eslint-config-flow

# or with npm

npm install --save-dev eslint @sensuapp/eslint-config-flow
```

If you did not already have an `.eslintrc` file you can add one.

```sh
./node_modules/.bin/eslint --init
```

Finally, add the following to your `.eslintrc`.

```json
{
  "extends": [
    "@sensuapp/eslint-config",
    "@sensuapp/eslint-config-flow",
  ]
}
```

### React

When used in concert with React you may want to remove the `prop-types` rule as
it will likely be duplicate effort. To do so add the following to your
`.eslintrc` file.


```json
{
  "extends": [
    "@sensuapp/eslint-config",
    "@sensuapp/eslint-config-flow",
    "@sensuapp/eslint-config-react",
  ],
  "rules": {
    "react/prop-types": "off",
  }
}
```
npm package: @sensuapp/eslint-config-react
Description: Sensu's ESLint config (for React.)
Author: James Phillips
Latest version: 1.5.0

# @sensuapp/eslint-config-react

This package provides Sensu's React & JSX ESLint settings as an extensible
configuration.

![version](http://img.shields.io/npm/v/@sensuapp/eslint-config-react.svg?style=flat-square)
![license](http://img.shields.io/npm/l/@sensuapp/eslint-config-react.svg?style=flat-square)
![build](https://img.shields.io/travis/sensu/eslint-config/master.svg?style=flat-square)

## Usage

First, add the package to your project.

```sh
yarn add --dev eslint @sensuapp/eslint-config-react

# or with npm

npm install --save-dev eslint @sensuapp/eslint-config-react
```

If you did not already have an `.eslintrc` file you can add one.

```sh
./node_modules/.bin/eslint --init
```

Finally, add the following to your `.eslintrc`.

```json
{
  "extends": [
    "@sensuapp/eslint-config",
    "@sensuapp/eslint-config-react",
  ]
}
```
npm package: @sensuapp/eslint-config-relay
Description: Sensu's ESLint config (for use with react-relay.)
Author: James Phillips
Latest version: 1.5.0

# Unmaintained

No longer maintained, kept for historical purposes.

# @sensuapp/eslint-config-relay

This package provides Sensu's [Relay](https://facebook.github.io/relay)
[ESLint](https://eslint.org) settings as an extensible configuration.

![version](http://img.shields.io/npm/v/@sensuapp/eslint-config.svg?style=flat-square)
![license](http://img.shields.io/npm/l/@sensuapp/eslint-config.svg?style=flat-square)
![build](https://img.shields.io/travis/sensu/eslint-config/master.svg?style=flat-square)

## Usage

First, add the package to your project.

```sh
yarn add --dev eslint @sensuapp/eslint-config-relay

# or with npm

npm install --save-dev eslint @sensuapp/eslint-config-relay
```

If you did not already have an `.eslintrc` file you can add one.

```sh
./node_modules/.bin/eslint --init
```

Finally, add the following to your `.eslintrc`.

```json
{
  "extends": [
    "@sensuapp/eslint-config",
    "@sensuapp/eslint-config-relay",
  ]
}
```

### graphql-config

The plugin assumes that you have a `.graphqlrc` file present. See
[graphql-config](https://github.com/graphcool/graphql-config#usage) for more
details on it's options.

```json
{
  "schemaPath": "schema.graphql",
  "includes": ["*.graphql"],
  "excludes": ["tmp/**"]
}
```
npm package: @sensuapp/eslint-plugin
Description: This package provides additional rules used by Sensu projects.
Author: Neal Granger
Latest version: 1.5.0

# @sensuapp/eslint-plugin

This package provides additional rules used by Sensu projects.

![version](http://img.shields.io/npm/v/@sensuapp/eslint-plugin.svg?style=flat-square)
![license](http://img.shields.io/npm/l/@sensuapp/eslint-plugin.svg?style=flat-square)
![build](https://img.shields.io/travis/sensu/eslint-plugin/master.svg?style=flat-square)

## Usage

First, add the package to your project.

```sh
yarn add --dev eslint @sensuapp/eslint-plugin

# or with npm

npm install --save-dev eslint @sensuapp/eslint-plugin
```

If you did not already have an `.eslintrc` file you can add one.

```sh
./node_modules/.bin/eslint --init
```

Finally, add the following to your `.eslintrc`.

```json
{
  "plugins": [
    "@sensuapp/eslint-plugin"
  ]
}
```
npm package: @senswap/sen-js
Description: The library for Sen
Author: Tu Phan
Latest version: 1.4.0

# SEN JS


## Introduction
This library is to help developers can integrate their projects to Sentre Ecosystem easily.

Sentre is an open liquidity protocol built on Solana. It's aiming to build and open, friendly, and free environment for both DApps developers, and DeFi users.

[![Npm package version](https://badgen.net/npm/v/@senswap/sen-js)](https://www.npmjs.com/package/@senswap/sen-js)
[![Npm package monthly downloads](https://badgen.net/npm/dm/@senswap/sen-js)](https://www.npmjs.com/package/@senswap/sen-js)
[![GitHub license](https://badgen.net/npm/license/@senswap/sen-js)](https://github.com/DescartesNetwork/sen-js/blob/master/LICENSE)


## Installation

```shell
npm i @senswap/sen-js
```

## Usage

```ts
import { Swap } from '@senswap/sen-js'
// Or
// const { Swap } = require('@senswap/sen-js')

const swapProgramAddress = '4erFSLP7oBFSVC1t35jdxmbfxEhYCKfoM6XdG2BLR3UF'
const spltProgramAddress = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'
const splataProgramAddress = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL'
const nodeUrl = 'https://api.devnet.solana.com'
const swap = new Swap(
  swapProgramAddress,
  spltProgramAddress,
  splataProgramAddress,
  nodeUrl
)

// Should be placed in an async wrapper
const poolData = await swap.getPoolData('9NodRcEmSxg2KMtPnFfzSvXGbBFXkRA4zgejhSGVpt9F')
console.log(poolData)
// {
//   owner: "8UaZw2jDhJzv5V53569JbCd3bD4BnyCfBH3sjwgajGS9"
//   state: 1
//   mint_lpt: "EsPTPmXhwpp5XjzCms6juqgrGCAhsTEaC47Lvm29RwTF"
//   taxman: "8UaZw2jDhJzv5V53569JbCd3bD4BnyCfBH3sjwgajGS9"
//   mint_a: "5YwUkPdXLoujGkZuo9B4LsLKj3hdkDcfP4derpspifSJ"
//   treasury_a: "J9aSEQkAF3Umy6mipq9EppLLrKWS26q5m4HaV2KG8atv"
//   reserve_a: 3110702644000n
//   mint_b: "27hdcZv7RtuMp75vupThR3T4KLsL61t476eosMdoec4c"
//   treasury_b: "9s2NgRPn4f7X6Kng4x8JEDcZ9kwphFg1kPD4oLQFEbM7"
//   reserve_b: 4570811590939n
//   fee_ratio: 2500000n
//   tax_ratio: 0n
// }
```

## Testing

```shell
npm test
```

## Related works

### Soprox ABI

* https://www.npmjs.com/package/soprox-abi
* https://soprox.descartes.network/development/soproxabi

### SenHub

* https://docs.sentre.io/
npm package: @sentecacommerce/proto-types
Description: https://www.npmjs.com/package/yalc
Author: Stefan Gadzhalov
Latest version: 0.2.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

## Prerequisite

https://www.npmjs.com/package/yalc

## Commands

`npm run dev` runs the project in watch mode so any edits you save inside `protos` causes a generation of `/src` and builds to `/dist`.

To do a one-off build, use `npm run build`.

## Bundle Analysis

[`size-limit`](https://github.com/ai/size-limit) is set up to calculate the real cost of your library with `npm run size` and visualize the bundle with `npm run analyze`.

### Setup Files

This is the folder structure we set up for you:

```txt
/src
  index.tsx       # EDIT THIS
/test
  blah.test.tsx   # EDIT THIS
.gitignore
package.json
README.md         # EDIT THIS
tsconfig.json
```

## Rollup

TSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.

## TypeScript

`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.

## Continuous Integration

### GitHub Actions

Two actions are added by default:

- `main` which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix
- `size` which comments cost comparison of your library on every pull request using [`size-limit`](https://github.com/ai/size-limit)

## Optimizations

Please see the main `tsdx` [optimizations docs](https://github.com/palmerhq/tsdx#optimizations). In particular, know that you can take advantage of development-only optimizations:

```js
// ./types/index.d.ts
declare var __DEV__: boolean;

// inside your code...
if (__DEV__) {
  console.log('foo');
}
```

You can also choose to install and use [invariant](https://github.com/palmerhq/tsdx#invariant) and [warning](https://github.com/palmerhq/tsdx#warning) functions.

## Module Formats

CJS, ESModules, and UMD module formats are supported.

The appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.

## Named Exports

Per Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.

## Including Styles

There are many ways to ship styles, including with CSS-in-JS. TSDX has no opinion on this, configure how you like.

For vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.

## Publishing to NPM

We recommend using [np](https://github.com/sindresorhus/np).
npm package: @sentecacommerce/protobufjs-wrappers
Description: Superset of protobuf.js. Add support for few Protocol Buffer wrappers.
Author: Yancho Georgiev
Latest version: 1.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

## How to use the custom loader with NestJS

```
npm i -S @sentecacommerce/protobufjs-wrappers
```

```typescript
app.connectMicroservice<MicroserviceOptions>({
  transport: Transport.GRPC,
  options: {
    url: '0.0.0.0:443',
    package: 'package.name',
    protoPath: join(__dirname, 'path_to_proto'),
    protoLoader: '@sentecacommerce/protobufjs-wrappers',
  },
});
```

## Supported types

- `google.protobuf.Struct`
- `google.protobuf.Timestamp`