open-index/open-npm huggingface dataset:
npm package: @mithraic-labs/serum
Description: Library for interacting with the serum dex
Latest version: 0.1.0-rc3

[![npm (scoped)](https://img.shields.io/npm/v/@project-serum/serum)](https://www.npmjs.com/package/@project-serum/serum)
[![Build Status](https://travis-ci.com/project-serum/serum-js.svg?branch=master)](https://travis-ci.com/project-serum/serum-js)

# Serum JS Client Library

JavaScript client library for interacting with the Project Serum DEX.

## Installation

Using npm:

```
npm install @solana/web3.js @project-serum/serum
```

Using yarn:

```
yarn add @solana/web3.js @project-serum/serum
```

## Usage

```js
import { Account, Connection, PublicKey } from '@solana/web3.js';
import { Market } from '@project-serum/serum';

let connection = new Connection('https://testnet.solana.com');
let marketAddress = new PublicKey('...');
let programAddress = new PublicKey("...");
let market = await Market.load(connection, marketAddress, {}, programAddress);

// Fetching orderbooks
let bids = await market.loadBids(connection);
let asks = await market.loadAsks(connection);
// L2 orderbook data
for (let [price, size] of bids.getL2(20)) {
  console.log(price, size);
}
// Full orderbook data
for (let order of asks) {
  console.log(
    order.orderId,
    order.price,
    order.size,
    order.side, // 'buy' or 'sell'
  );
}

// Placing orders
let owner = new Account('...');
let payer = new PublicKey('...'); // spl-token account
await market.placeOrder(connection, {
  owner,
  payer,
  side: 'buy', // 'buy' or 'sell'
  price: 123.45,
  size: 17.0,
  orderType: 'limit', // 'limit', 'ioc', 'postOnly'
});

// Retrieving open orders by owner
let myOrders = await market.loadOrdersForOwner(connection, owner.publicKey);

// Cancelling orders
for (let order of myOrders) {
  await market.cancelOrder(connection, owner, order);
}

// Retrieving fills
for (let fill of await market.loadFills(connection)) {
  console.log(fill.orderId, fill.price, fill.size, fill.side);
}

// Settle funds
for (let openOrders of await market.findOpenOrdersAccountsForOwner(
  connection,
  owner.publicKey,
)) {
  if (openOrders.baseTokenFree > 0 || openOrders.quoteTokenFree > 0) {
    // spl-token accounts to which to send the proceeds from trades
    let baseTokenAccount = new PublicKey('...');
    let quoteTokenAccount = new PublicKey('...');

    await market.settleFunds(
      connection,
      owner,
      openOrders,
      baseTokenAccount,
      quoteTokenAccount,
    );
  }
}
```
npm package: @mithraic-labs/tokenized-euros
Description: | Program                                      | Devnet                                         | Mainnet Beta                                   | | -------------------------------------------- | ---------------------------------------------- | ----------
Latest version: 0.2.3

<div align="center">
  <img height="170" src="https://www.psyoptions.io/static/Gradient-3b03130caf20b8bf48093eaa1f567a3a.png" />

  <h1>Tokenized Cash Settled European Options</h1>

  <p>
    <a href="https://discord.com/invite/Ew3dq7dKwp"><img alt="Discord Chat" src="https://img.shields.io/discord/821571258852442142?color=blue" /></a>
  </p>

  <h4>
    <a href="https://psyoptions.io/">Website</a>
    <span> | </span>
    <a href="https://discord.com/invite/Ew3dq7dKwp">Discord</a>
    <span> | </span>
    <a href="https://trade.psyoptions.io/">Trade</a>
    <span> | </span>
    <a href="https://app.psyfi.io">Structured Products</a>
  </h4>
</div>

## Program Deployments

| Program                                      | Devnet                                         | Mainnet Beta                                   |
| -------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
| [Tokenized Euros](/programs/euro-primitive/) | `FASQhaZQT53W9eT9wWnPoBFw8xzZDey9TbMmJj6jCQTs` | `FASQhaZQT53W9eT9wWnPoBFw8xzZDey9TbMmJj6jCQTs` |

## JS Installation

```
yarn add @mithraic-labs/tokenized-euros
```
npm package: @mithrandirii/nestjs-type-mongodb
Description: A nest.js module for type-mongodb
Author: Jordan Stout
Latest version: 2.0.0-beta.7

<h1 align="center" style="border-bottom: none;">nestjs-type-mongodb</h1>
<p align="center">
    A <a href="https://github.com/j/type-mongodb">type-mongodb</a> module for <a href="https://github.com/nestjs/nest">Nest.js</a>.
</p>

<p align="center">
    <a href="https://www.npmjs.com/~jrdn" target="_blank"><img src="https://img.shields.io/npm/v/nestjs-type-mongodb.svg" alt="NPM Version" /></a>
    <a href="https://www.npmjs.com/~jrdn" target="_blank"><img src="https://img.shields.io/npm/l/nestjs-type-mongodb.svg" alt="Package License" /></a>
    <a href="https://www.npmjs.com/~jrdn" target="_blank"><img src="https://img.shields.io/npm/dm/nestjs-type-mongodb.svg" alt="NPM Downloads" /></a>
</p>

## Installation

```bash
$ yarn add nestjs-type-mongodb
```

## Basic usage

**app.module.ts**

```typescript
import { Module } from "@nestjs/common";
import { TypeMongoDBModule } from 'nestjs-type-mongodb';
import { DogsModule } from "./dog.module.ts";

@Module({
  imports: [
    TypeMongoDBModule.forRoot({
      connection: {
        uri: 'mongodb://localhost:31000/animals?replicaSet=test',
        database: 'animals'
      }
    }),
    DogsModule
  ]
})
export class AppModule {}
```

Create class that describes your schema

**dog.model.ts**

```typescript
import { Document, Id, Field } from 'type-mongodb';
import { ObjectId } from 'mongodb';

@Document()
export class Dog {
  @Id()
  _id: ObjectId;

  @Field()
  name: string;

  @Field()
  age: number;

  @Field()
  breed: string;
}
```

Inject Dog for `DogsModule`

**dog.module.ts**

```typescript
import { Module } from '@nestjs/common';
import { TypeMongoDBModule } from 'nestjs-type-mongodb';
import { DogsController } from './dogs.controller';
import { DogsService } from './dogs.service';
import { Dog } from './models/dog';

@Module({
    imports: [
        TypeMongoDBModule.forFeature([Dog])
    ],
    controllers: [DogsController],
    providers: [DogsService]
})
export class DogsModule { }
```

Get the dog repository in a service

**dogs.service.ts**

```typescript
import { Injectable } from '@nestjs/common';
import { InjectRepository } from 'nestjs-type-mongodb';
import { Repository } from 'type-mongodb';
import { CreateDogDto } from './dto/create-dog.dto';
import { Dog } from './models/dog';

@Injectable()
export class DogsService {
    constructor(
        @InjectRepository(Dog)
        private readonly repository: Repository<Dog>
    ) { }

    async create(dog: CreateDogDto): Promise<Dog> {
        return this.repository.create(dog);
    }

    async findAll(): Promise<Dog[]> {
        return this.repository.find().toArray();
    }
}
```


## Test

```bash
# e2e tests
$ npm run test:e2e
```

## Stay in touch

- Author - [Jordan Stout](https://github.com/j)

## License

`nestjs-type-mongodb` is [MIT licensed](LICENSE).
npm package: @mithray/analyze-js
Description: ## Introduction
Author: Raymond Smith
Latest version: 0.0.16

# analyze-js

## Introduction

## Contents

* [Introduction](#introduction)
* [Installation](#installation)
* [Usage](#usage)
* [Roadmap](#roadmap)
* [Release Notes](#release-notes)

## Installation

```sh
npm i @mithray/analyze-js
```

Installing graphviz will give you more attractive graphs. If I can find an attractive `javascript` alternative I will change this dependency. On a Debian based system use the following to install graphviz:
```sh
sudo apt-get install graphviz
```
## Usage

## Roadmap

* [ ] Complexity analysis
* [ ] Website testing
* [ ] Dependency graphs

## Release Notes

### Release 0.0.16

* update

### Release 0.0.15

* update

### Release 0.0.14

* update

### Release 0.0.13

* graphviz with viz.js fallback

### Release 0.0.12

* Fix Madge options error

### Release 0.0.11

* Clean

### Release 0.0.10

* Remove unnecessary logging

### Release 0.0.9

* Add default colors to dependency graph
npm package: @mithray/bdd-cligen
Description: ## Introduction
Author: mithrayls
Latest version: 0.0.1
Deprecated: changing names

# Behavior Driven Development CLI Generator

## Introduction

Given a yaml file defining commands with a particular syntax, generates a cli program.

## Contents

-   [Introduction](#introduction)
-   [Contents](#contents)
-   [Installation](#installation)
-   [Usage](#usage)

## Installation

```shell
// With yarn
yarn add @mithray/bdd-cligen

// With npm
npm i @mithray/bdd-cligen
```

## Usage

There are two steps to using this tool.

1. Using the `bdd-cligen` module
2. Writing a yaml file that defines your own API

### Using the bdd-cligen module

This is the main executable and should be placed in the `./bin` directory of your node project. The variable `program` is a [commander](https://www.npmjs.com/package/commander) object.

```javascript
#!/usr/bin/env node

const cligen = require('@mithray/bdd-cligen')
cligen({ path: './api.yml' }).then(program => {
    program.parse(process.argv)
})
```

### Writing a yaml file

The yaml program specifies options defining the interface of your functions. Not all of these are necessary to generate the cli, but they could be used by other programs such as an integration with JSDoc andmocha testing. `bdd-cligen` only requires you to define the variables `description`, `function`, `parameter_desc` for every function. Testing might suggest the `path_prefix` also needs to be defined, and the root parent of the tests also must be called `api`.

```yaml
---
path_prefix: 'lib'

api:
    someFunc:
        description: 'A description of your function to appear in Help files'
        function: 'nameOfFunction'
        parameter_desc: '{string} [someString="This yaml property has JSDoc syntax"]'
        tests:
            - parameters: { someString: 'A description of various tests' }
              condition: 'should have property "api"'
            - parameters: >
                  {
                      someString: 'These descriptions will be used to generate BDD tests using mochajs and should.js',
                  }
              condition: 'should have property "api"'
```

Note, the `tests` property will not actually be used, but it is likely to be helpful for future integrations. These test descriptions will be used to generate BDD tests using mochajs and should.js. The syntax of the condition property is like that of should.js, except that it has dots converted to spaces and function calls converted to quotes.
npm package: @mithray/mnd
Description: A Generic CSS Stylesheet that encourages conformity to standardized HTML, ARIA and Schema practices thereby creating improved Usability/Accessibility for a greater number of people. The Japanese word "和" which can be translated as "teamwork" or "harmony" 
Author: Raymond Smith
Latest version: 0.0.1491

# mnd

Package has been renamed. The version you are browsing now is no longer updated. New package is [wacss](https://www.npmjs.com/package/wacss).
npm package: @mithray/schema
Description: schema
Author: mithrayls
Latest version: 0.0.13

# Schema

## Introduction

*Still in design stage, nothing to see here*

This project houses schema.org json data and also provides some html representations of these schema in the form of html blocks.

## Contents

* [Introduction](#introduction)
* [Contents](#contents)
* [Installation](#installation)
* [Purpose](#purpose)
* [Usage](#usage)

## Installation

```sh
npm i @mithray/schema
```

## Purpose

See [docs](https://github.com/mithrayls/schema/docs) for more information.

## Usage

```javascript
const schema = require('@mithray/schema')

const animal_farm = {
	@context: "http://schema.org/",
	@graph: [{
		@type: "Book",
		@id: "http://id.worldcat.org/fast/1357727/",
		name: "Animal Farm",
		author: {
			@type: "Person",
    	@id": "http://viaf.org/viaf/17813",
			name: "George Orwell"
		}
		datePublished: ""
	}]
}

/**
 * @param {jsonld} required. An object containing linkable data.
 * @param {string=} optional. A string which identifies a mapping to an HTML component. The component will default to definition list if omitted.
 */
const html = schema.Book(animal_farm, 'dl')

console.log(html)
```

Result is
```html
<div itemscope itemtype="http://schema.org/Book">
	<span itemprop="name">Animal Farm</span>
	<span itemprop="author" itemscope itemtype="http://schema.org/Person">Orwell</span>
</div>
```

## Release Notes

### Release 0.0.13

* Update Readme
npm package: @mithray/zeromod
Description: A Collection of Different features all put into separate mods.
Author: mithrayls
Latest version: 0.0.101

# Muse

The main goal of this project is to unify content from other mods and to make modding easier and more maintainable through reducing redundancy in Mod configuration. This is done by generating any redundant information in the necessary XML files from a smaller set of more human readable YAML configuration files. With redundancy removed, it's significantly easier to make changes to the game without spending nearly as much time editing XML files. With the time saved in editing XML files, artists and developers can save time in editing and maintaining files, and use that time to improve features and art, and doing historical research. With the game being easier to mod, improvements in one mod can more easily be carried over to other mods without needing to take the entire mod. The improvements will be treated modularly.

Once this project is finished, it should be easy to create a custom mod with different settings from other mods and civilization restrictions, such as including in the released mod only Baltic or Hellenic civilizations, or many other economic settings such as low armor, balancing adjustments etc.


```shell
zeromod generate --input "conf.yml" --ouput "mymod"
```

```shell
zeromod init
zeromod resources list <shields, maps, etc>
zeromod resources add
zeromod resources delete
```

```yaml
name: Greek States
civilizations: 
- hellenic
- germanic
citizen_soldier: true
soldiers_construct_siege: true

loot:
  collect_as: resource # <treasure|resource|loot>
  trade_carts_collect: true
  equipment_ratio: 0.2

defensive_structures:
  houses_shoot: true
  houses_weaker: true
  houses_barricade_upgrade: true
  garrison_economic: true
  garrison_resource: true
  garrison_civic: true
  structures_less_capture_recovery: true
  structures_weaker: true

battle:
  armor: low
  health: medium
  damage: high
  wounded: true

experience:
  promote_across_class: true
  classes:
    - citizen soldier
    - professional
    - champion
    - hero

agriculture:
  farms_used_and_regrow: true
  bushes_regrow: true
  farms_tiny_fields: true
  fauna_manure: true
  fauna_trickle: true
  fauna_consume_farms: true

phase:
  type: phase # <phase|age> whether to make phase researchable or to apply automatically when certain conditions - such as number of buildings - are met
  territory: contiguous # <contiguous|global> whether to apply the phase to contiguous territories or globally.
```
npm package: @mithrillium/core
Description: mithrillium core
Author: mithrillium
Latest version: 0.0.3
Deprecated: this package has been deprecated

# @mithrillium/core

[![Build Status](https://travis-ci.org/mithrillium/core.svg?branch=master)](https://travis-ci.org/mithrillium/core)
[![Coverage Status](https://coveralls.io/repos/github/mithrillium/core/badge.svg?branch=master)](https://coveralls.io/github/mithrillium/core?branch=master)
[![dependencies Status](https://david-dm.org/mithrillium/core/status.svg)](https://david-dm.org/mithrillium/core)
[![devDependencies Status](https://david-dm.org/mithrillium/core/dev-status.svg)](https://david-dm.org/mithrillium/core?type=dev)
[![peerDependencies Status](https://david-dm.org/mithrillium/core/peer-status.svg)](https://david-dm.org/mithrillium/core?type=peer)
[![npm version](https://badge.fury.io/js/%40mithrillium%2Fcore.svg)](https://badge.fury.io/js/%40mithrillium%2Fcore)
[![downloads](https://img.shields.io/npm/dm/@mithrillium/core.svg)](https://www.npmjs.com/package/@mithrillium/core)
[![license](https://img.shields.io/npm/l/@mithrillium/core.svg)](https://www.npmjs.com/package/@mithrillium/core)
npm package: @mithuninnxtloop/tiny
Description: Removes all spaces from a string
Latest version: 2.0.0

# @mithuninnxtloop/tiny

[![npm (scoped)](https://img.shields.io/npm/v/@mithuninnxtloop/tiny.svg)](https://www.npmjs.com/package/@mithuninnxtloop/tiny)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/mithuninnxtloop/tiny.svg)](https://www.npmjs.com/package/@mithuninnxtloop/tiny)

Removes all spaces from a string.

## Install

```
$ npm install @mithuninnxtloop/tiny
```

## Usage

```js
const tiny = require("@mithuninnxtloop/tiny");

tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
npm package: @mitigate-dev/eslint-config-react-native
Description: ESLint config for React Native projects at Mitigate.
Author: Jānis Ieviņš
Latest version: 0.0.17

# ⚙️ ESLint Config

_ESLint config to be used in React Native projects at Mitigate - based on TypeScript, Jest, Prettier and the community standards._

## 🏗️ Installation and usage

Run `yarn add --dev eslint @mitigate-dev/eslint-config-react-native` within the root of your React Native project and update `.eslintrc.js` to extend this config as follows:

```js
module.exports = {
  extends: ['@react-native', '@mitigate-dev/eslint-config-react-native'],
}
```
npm package: @mitkimi/deja-vu
Description: A Component Library for Vue.js.
Author: mitkimi
Latest version: 0.1.8

# Deja vu for Vue 2

> A very light Vue based UI library

## install
```bash
npm install deja-vu --save-dev
```

## Quick Start
```javascript
import Vue from 'vue'
import DejaVu from 'deja-vu'

Vue.use(DejaVu)
```

## FYI
> This is a developing project, please dont use it

## Developer

[show developer info](./examples/scene/Developer/developer.md)
npm package: @mitl-cli/mitl
Description: Mitl — precise, ephemeral tooling
Latest version: 0.0.1
Deprecated: Deprecated — use @mitl-cli/mitl-js

# @mitl-cli/mitl

Mitl — precise, ephemeral tooling  
**Pronunciation:** MEET-tl — Nahuatl _mitl_ = "arrow".  
**Tagline:** Launch ephemeral dev & test environments with surgical precision.

## Quick usage (stub)

mitl init
mitl run --profile=ci
mitl dev
mitl test
mitl status
mitl prune --stale

nginx
Copy
Edit

## Publishing

This repo contains the package `@mitl-cli/mitl`. CI will publish on release tags.
npm package: @mitl-cli/mitl-js
Description: Mitl — precise, ephemeral tooling
Latest version: 0.0.1

# @mitl-cli/mitl

Mitl — precise, ephemeral tooling  
**Pronunciation:** MEET-tl — Nahuatl _mitl_ = "arrow".  
**Tagline:** Launch ephemeral dev & test environments with surgical precision.

## Quick usage (stub)

mitl init
mitl run --profile=ci
mitl dev
mitl test
mitl status
mitl prune --stale

nginx
Copy
Edit

## Publishing

This repo contains the package `@mitl-cli/mitl`. CI will publish on release tags.
npm package: @mitm/chuck-ifc
Description: Chuck plugin that converts Industry Foundation Classes 3D models with IfcOpenShell
Latest version: 1.3.0

# chuck-ifc [![npm version](https://img.shields.io/npm/v/@mitm/chuck-ifc.svg?style=flat-square)](https://www.npmjs.com/package/@mitm/chuck-ifc) ![license](https://img.shields.io/github/license/mitmadness/chuck-ifc.svg?style=flat-square) [![Travis Build](https://img.shields.io/travis/mitmadness/chuck-ifc.svg?style=flat-square)](https://travis-ci.org/mitmadness/chuck-ifc)

[Chuck](https://github.com/mitmadness/chuck) plugin that converts Industry Foundation Classes models with [IfcOpenShell](http://ifcopenshell.org/).

*:point_right: [@mitm/chuck](https://github.com/mitmadness/chuck), a fully-featured webservice that builds Unity3D asset bundles.*

## :white_check_mark: Requirements

The plugin requires you to install [IfcConvert](http://ifcopenshell.org/ifcconvert.html) globally (at least, it must be available it the `$PATH`).

Ensure that the version you download is superior or equal to version 0.5. The library is known to crash on 0.4 and prior versions.

## :package: Installation & Usage

Like any other chuck plugin, install it alongside of `@mitm/chuck`:

```
yarn add @mitm/chuck-ifc
```

Then load it with chuck (see chuck's documentation about configuration and plugins if necessary):

```
CHUCK_STEPMODULEPLUGINS=@mitm/chuck-ifc yarn chuck
```

## :wrench: Configuration

Like with chuck, configuration is done via environment variables.

| Variable                   | Default                        | Description |
|----------------------------|--------------------------------|-------------|
| `CHUCK_IFC_IFCCONVERTPATH` | `IfcConvert` (= in the `PATH`) | Path to the [IfcConvert](http://ifcopenshell.org/ifcconvert.html) executable |