open-index/open-npm huggingface dataset:
npm package: @garyos/bash-parser
Description: Fork: Standard compliant bash parser
Author: vorpal-js
Latest version: 0.5.2

# bash-parser

Parses bash source code to produce an AST

[![Travis Build Status](https://img.shields.io/travis/vorpaljs/bash-parser/master.svg)](http://travis-ci.org/vorpaljs/bash-parser)
[![Coveralls](https://img.shields.io/coveralls/vorpaljs/bash-parser.svg?maxAge=2592000)](https://coveralls.io/github/vorpaljs/bash-parser)
[![NPM module](https://img.shields.io/npm/v/bash-parser.svg)](https://npmjs.org/package/bash-parser)
[![NPM downloads](https://img.shields.io/npm/dt/bash-parser.svg)](https://npmjs.org/package/bash-parser)
[![Try online](https://img.shields.io/badge/try_it-online!-yellow.svg)](https://vorpaljs.github.io/bash-parser-playground/)

# Installation

```bash
npm install --save bash-parser
```

# Usage

```js
  const parse = require('bash-parser');
  const ast = parse('echo ciao');
```

`ast` result is:

```js
{
		type: "Script",
		commands: [
			{
				type: "SimpleCommand",
				name: {
					text: "echo",
					type: "Word"
				},
				suffix: [
					{
						text: "ciao",
						type: "Word"
					}
				]
			}
		]
	}
```

# Related projects

* [cash](https://github.com/dthree/cash) - This parser should become the parser used by `cash` (and also [vorpal](https://github.com/dthree/vorpal))
* [nsh](https://github.com/piranna/nsh) - This parser should become the parser used by `nsh`
* [js-shell-parse](https://github.com/grncdr/js-shell-parse) - bash-parser was born as a fork of `js-shell-parse`, but was rewritten to use a `jison` grammar
* [jison](https://github.com/zaach/jison) - Bison in JavaScript.

# Documentation

Look in [documents folder](https://github.com/vorpaljs/bash-parser/tree/master/documents)

# License

The MIT License (MIT)

Copyright (c) 2016 vorpaljs
npm package: @garyos/mode-grammar-builder
Description: Build a jison grammar for a bash-parser mode
Author: Andrea Parodi
Latest version: 0.6.3

# mode-grammar-builder

> Build a jison grammar for a mode-grammar-builder mode

This is an internal binary tool used by the bash-parser build toolchain
to compile a json grammar to a javascript file.

You usually don't need to use it directly if you are not developing
Vorpal.


# Usage

```bash
mgb <mode folder path>
```

E.g., to build posix grammar:

```bash
mgb modes/posix
```


[![Travis Build Status](https://img.shields.io/travis/vorpaljs/mode-grammar-builder/master.svg)](http://travis-ci.org/vorpaljs/mode-grammar-builder)
[![NPM module](https://img.shields.io/npm/v/mode-grammar-builder.svg)](https://npmjs.org/package/mode-grammar-builder)
[![NPM downloads](https://img.shields.io/npm/dt/mode-grammar-builder.svg)](https://npmjs.org/package/mode-grammar-builder)


# License

The MIT License (MIT)

Copyright (c) 2017 vorpaljs
npm package: @garypippi/vue-styled-components
Description: vue styled components
Author: Naruto Ishikawa
Latest version: 0.0.22
Deprecated: https://github.com/garypippi/vue-styled-components

vue-styled-components that supports TypeScript.

![DEMO](https://s3-ap-northeast-1.amazonaws.com/garypippi.net/github.com/vue-styled-components/demo.gif)
npm package: @garystorey/cssclass
Description: A small dependency-free utility to combine css classes written in TypeScript.
Author: Gary Storey
Latest version: 1.3.0

# cssclass

A small dependency-free utility to combine css classes written in TypeScript.

![Version](https://img.shields.io/github/package-json/v/garystorey/cssclass)
![Size](https://img.shields.io/bundlephobia/min/@garystorey/cssclass)
![License](https://img.shields.io/npm/l/@garystorey/cssclass)

![Leywords](https://img.shields.io/github/package-json/keywords/garystorey/cssclass)

## Installation

You can install either with `npm` or `yarn`:

```js
npm install @garystorey/cssclass

yarn add @garystorey/cssclass
```

## Usage

Example in JavaScript:

```js
import cssclass from '@garystorey/cssclass'

const value = 1
const classes = cssclass(`default`, {
  notadded: value === 0,
  added: value === 1,
})
console.log(classes)
// "default added"
```

Since `cssclass` is written in TypeScript, it includes its own types.

```ts
import { cssclass, CSSClassObject } from '@garystorey/cssclass'

const classObject: CSSClassObject = {
  notadded: value === 0,
  added: value === 1,
}

const value: number = 1
const classes = cssclass('default', classObject)
console.log(classes)
// "default added"
```

You can see it in action [on this CodeSandbox](https://codesandbox.io/s/cssclass-example-w1og5).
npm package: @garystorey/slugify
Description: A small utility to remove/replace whitepace from a string
Author: Gary Storey
Latest version: 1.0.3

# slugify

A small dependency-free utility to remove whitespace from a string.

![Version](https://img.shields.io/github/package-json/v/garystorey/slugify)
![Size](https://img.shields.io/bundlephobia/min/@garystorey/slugify)
![License](https://img.shields.io/npm/l/@garystorey/slugify)

![Leywords](https://img.shields.io/github/package-json/keywords/garystorey/slugify)

## Installation

You can install either with `npm` or `yarn`:

```js
npm install @garystorey/slugify

yarn add @garystorey/slugify
```
## Parameters

| Parameter Type | Required | Description
--------|----------|---
| string| **Yes**| The string to strip whitespace
| _string_| _No_ | _Replacement character_

<br/>

## Usage

`slugify` has one required `string` parameter.

```js
import slugify from '@garystorey/slugify';
const slug = slugify('My Title');
console.log(slug);
// "mytitle"
```

Optionally, a replacement character can be provided as a second argument:


```js
import slugify from '@garystorey/slugify';
const slug = slugify('My Title','_');
console.log(slug);
// "my_title"
```

`slugify` is written in TypeScript.
npm package: @garywenneker/spnitro
Description: SPNitro is an Angular 2 module which has a Components to interact with the SharePoint REST service to access and update SharePoint data, using the REST and OData web protocol standards. SPNitro helps you run functions asynchronously, and use their return 
Author: Gary Wenneker
Latest version: 1.0.8

*  [Homepage](http://spnitro.azurewebsites.net/)

# Installation
> `npm install --save @garywenneker/spnitro`

# Summary
SPNitro is an Angular 2 module which has a Components to interact with the SharePoint REST service to access and update SharePoint data, using the REST and OData web protocol standards. SPNitro helps you run functions asynchronously, and use their return values when they are done processing.
This package contains type definitions for SharePoint-Nitro (https://github.com/GaryWenneker/spNitro).

## Building

In order to build the TypeScript compiler, ensure that you have [Git](http://git-scm.com/downloads) and [Node.js](http://nodejs.org/) installed.

Clone a copy of the repo:

```
git clone https://github.com/GaryWenneker/spNitro
```

Change to the TypeScript directory:

```
cd TypeScript
```

Install Gulp tools and dev dependencies:

```
npm install -g gulp
npm install
```

Use one of the following to build and test:

```
gulp              # Builds the output.
gulp serve        # provides the SharePoint workbench for testing the web part. 
```

## Roadmap

For details on our planned features and future direction please refer to our [roadmap](https://github.com/GaryWenneker/spNitro/wiki/Roadmap).

## Trello board

SharePoint nitro contains a variety of fundamental elements of the SharePoint REST API. If you'd like to see the progress of this project head over to our [SharePoint Nitro Progress Board](https://trello.com/b/Ehc1SGXD/sharepoint-nitro).

# Details

Additional Details
 * Last updated: Mon, 19 april 2017 16:15:12 GMT
 * Dependencies: angular
 * Global values: none
npm package: @garzaconsulting/mach-sdk1
Description: A TypeScript SDK for integrating with Mach's API.
Author: Gabriel Garza
Latest version: 0.1.3

# Mach SDK

## Prerequisites

- Node.js 20+

## Internal Development

While we are testing here internally, the appropriate npm package is `@ggarza5/mach-sdk1`.
Installed in client scripts like this:

```bash
npm install @ggarza5/mach-sdk1@latest
```

## Documentation

- Documentation for the SDK can be found [here](https://machprotocol.com/api-reference/sdk/library/).

## Roadmap

- [x] EVM ERC20 swaps for common tokens
- [ ] EVM WETH swaps
- [ ] Websocket listening for order events
- [ ] Full support for generic ERC20 swaps
- [ ] Solana swaps
- [ ] Tron swaps

## Project Structure

### @types

Defines common types used by the SDK, such as:

- Balance
- Chain
- Network
- Order Response
- Order
- Token

### api

API helper functions for interacting with the Mach API, e.g.:

- Fetching the dynamic configuration object in `src/api/config.api.ts`
- Getting recommended gas fees in `src/api/getMachGasRecommendation.api.ts`
- Getting a wallet's transaction history in `src/api/transactionHistory.api.ts`

### chains

Contains Solana configurations that will be used in a future release.

### configs

Defines the chains and tokens that are supported by the SDK.

### constants

Holds constant values used by the SDK and for convenience in applications, such as:

- The Mach platform's contract addresses across different chains in `src/constants/contractAddresses.ts`
- Asset addresses across different chains in `src/constants/assetAddresses.ts`
- Network configurations like chain IDs, LayerZero IDs, abbreviations, etc. in `src/constants/networkConfigs.ts`

### contract

Includes ABI (Application Binary Interface) definitions for smart contracts, allowing interaction with the Mach platform's contracts, as well as the erc20 and wrappedEth contracts.

### helpers

Contains utility functions for blockchain operations, such as:

- Creating wallet clients for interacting with the blockchain (via `createWalletClients.helper.ts`)
- Building order data for submitting orders to the blockchain (via `encodeOrderData.helper.ts`)
- Interacting with the Mach market maker to complete swaps after submission to the blockchain (via `makeOrder.helper.ts`)
- Transaction signing (via `signTransaction.helper.ts`)
- Generating block explorer URLs (via `getBlockExplorerUrl.helper.ts`)

### utils

Contains utility functions for the SDK, such as:

- Getting gas values for transactions (via `getGasForTransaction.util.ts`)
npm package: @garzj/event-subscriber
Description: An event proxy allowing for easy removal of subscriptions on the EventEmitter class
Author: Johannes Garz
Latest version: 2.1.1

# @garzj/event-subscriber

Proxies subscriptions to an EventEmitter and stores references, allowing for an easy removal.

## Features

- TypeScript support
- Compatible with
  - [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget)
  - [EventEmitter](https://nodejs.org/en/learn/asynchronous-work/the-nodejs-event-emitter)
  - [typed-emitter](https://github.com/andywer/typed-emitter)
  - [tiny-typed-emitter](https://github.com/binier/tiny-typed-emitter)
  - more...

## Heads up

Due to a TypeScript limitation (there does not seem to be a reliable way to remap return types of function overloads), methods of the `EventSubscriber` class may look like they return the original event emitter (they do not, the subscriber is returned).

It's probably better to avoid chaines like `.on(a, b).on(c, d)` and prefer `sub.on(a, b); sub.on(c, d);` instead.

## Installation

```bash
npm i @garzj/event-subscriber
```

or with yarn

```bash
yarn add @garzj/event-subscriber
```

## Usage

### Subscribe to events

```ts
import { EventEmitter } from 'events';
import { EventSubscriber } from '@garzj/event-subscriber';

const myEmitter = new EventEmitter();

myEmitter.on('my-event', () => console.log('Always called!'));
myEmitter.emit('my-event');

const sub = new EventSubscriber(myEmitter);
sub.on('my-event', () => console.log('Temporarily called!'));
myEmitter.emit('my-event');
sub.off();

myEmitter.emit('my-event');
```

#### Output

```
Always called!
Always called!
Temporarily called!
Always called!
```

### Forward type declaration

```ts
import { EventSubscriber } from '@garzj/event-subscriber';

let subscriber: EventSubscriber<typeof process>;

subscriber = new EventSubscriber(process);
subscriber.on('exit', () => console.log('process exit'));
subscriber.off();
```