open-index/open-npm huggingface dataset:
npm package: @nicktomlin/frequencies
Description: A javscript port of clojure.core/frequencies
Author: Nick Tomlin
Latest version: 1.0.0

# frequencies [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]

> A javscript port of clojure.core/frequencies

## Installation

```sh
$ npm install --save @nicktomlin/frequencies
```

## Usage

```js
const assert = require('assert')
const frequencies = require('@nicktomlin/frequencies');

// works with strings (splitting on '')
assert.deepEqual(frequencies('EEeek!'), { '!': 1, e: 4, k: 1 })
assert.deepEqual(frequencies('EE ee k!'), { '!': 1, e: 4, k: 1 })

// works with arrays
assert.deepEqual(
  frequencies(['three', 'three', 'two', 'two', 'one', 'three']),
  { three: 3, two: 2, one: 1 }
)
```
## License

MIT © [Nick Tomlin](https://nick-tomlin.com)


[npm-image]: https://badge.fury.io/js/frequencies.svg
[npm-url]: https://npmjs.org/package/@nicktomlin/frequencies
[travis-image]: https://travis-ci.org/NickTomlin/frequencies.svg?branch=master
[travis-url]: https://travis-ci.org/NickTomlin/frequencies
[daviddm-image]: https://david-dm.org/NickTomlin/frequencies.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/NickTomlin/frequencies
npm package: @nicktomlin/monaco-yaml
Description: temporary fork of the YAML plugin for the Monaco Editor
Author: Kevin Decker
Latest version: 2.6.0-beta

⚠️ This is a temporary fork of monaco-yaml that incorporates the updates in [this](https://github.com/pengx17/monaco-yaml/pull/48) ⚠️

use at your own risk!

# Monaco YAML

YAML language plugin for the Monaco Editor. It provides the following features when editing YAML files:

- Code completion, based on JSON schemas or by looking at similar objects in the same file
- Hovers, based on JSON schemas
- Validation: Syntax errors and schema validation
- Formatting
- Document Symbols
- Syntax highlighting
- Automatically load remote schema files (by enabling DiagnosticsOptions.enableSchemaRequest)

Schemas can also be provided by configuration. See [here](https://github.com/Microsoft/monaco-json/blob/master/src/monaco.d.ts)
for the API that the JSON plugin offers to configure the JSON language support.

## Installing

`yarn add monaco-yaml`
Both vs loader and ESM are supported.
See `examples` directory for esm and umd examples.

## Development

- `git clone https://github.com/pengx17/monaco-yaml`
- `cd monaco-yaml`
- `yarn`

A running example:
![demo-image](test-demo.png)

## Credits

- https://github.com/redhat-developer/yaml-language-server

## License

[MIT](https://github.com/pengx17/monaco-yaml/blob/master/LICENSE.md)
npm package: @nicktomlin/pie
Description: A tiny pie chart plugin for (P)React.
Latest version: 1.0.0-alpha.5

pie [![npm version](https://badge.fury.io/js/%40nicktomlin%2Fpie.svg)](https://badge.fury.io/js/%40nicktomlin%2Fpie) [![Build Status](https://travis-ci.org/NickTomlin/pie.svg?branch=master)](https://travis-ci.org/NickTomlin/pie)
---

Create deliciously declarative pie charts with (P)React.

:warning: this is published as an alpha not considered ready for wide use. I'm just playing around :warning:

```shell
npm i @nicktomlin/pie
```

```jsx
import {Pie, Slice} from '@nicktomlin/pie' // OR @nicktomlin/pie/dist/pie.preact

<Pie>
  <Slice percent={0.1} fill='Coral' />
  <Slice percent={0.7} fill='CornFlowerBlue' />
  <Slice percent={0.2} fill='#00ab6b' />
</Pie>
```

Features
---

- [x] Actually renders a pie chart
- [x] Preact compatible (vanilla without needing `preact-compat`)
- [x] Doughnut chart
- [ ] Top/Bottom Labels
- [ ] Hover effects (technically one could just pass props through to `Slice>` and be done with it but we could also make this easier)

Prior Art
---

- [hard things stolen from a simple pie chart in SVG](https://hackernoon.com/a-simple-pie-chart-in-svg-dbdd653b6936)
- Structure stolen from [Ryan Florence's "Compound Components" talk](https://www.youtube.com/watch?v=hEGg-3pIHlE)
- You should probably just use [charts.js](http://www.chartjs.org/) or [d3](https://d3js.org/)

Contributing
---

1. Fork and clone this repo
2. Make your changes
3. Please add a test if possible
4. Ensure that `npm test` passes
5. Open up a pull request
npm package: @nicktomlin/typescript-library-example
Description: This is me messing around with the [TypeScript library starter](https://github.com/alexjoverm/typescript-library-starter) and publishing on NPM. Not much to actually see.
Author: Nick Tomlin
Latest version: 0.0.0

This is me messing around with the [TypeScript library starter](https://github.com/alexjoverm/typescript-library-starter) and publishing on NPM. Not much to actually see.
npm package: @nicktorwald/n8n-nodes-socketio
Description: Listen to Socket.IO events and trigger workflows
Author: Sasha Jovicic
Latest version: 0.1.17

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

# n8n-nodes-socket.io

This is a node for n8n that allows you to trigger workflows based on Socket.IO events.

## Nodes

- SocketIoTrigger

## Functionality
- Connect to a Socket.IO server with authentication
- listens to events from a Socket.IO server and triggers workflows
- Join a channel (emit channel name to join)


## License

[MIT](https://github.com/n8n-io/n8n-nodes-starter/blob/master/LICENSE.md)
npm package: @nickxiao42/kingdee-approval
Description: A Model Context Protocol server for Kingdee OA approval automation
Author: Nick Xiao
Latest version: 1.1.12

# @nickxiao42/kingdee-approval

A Model Context Protocol server for Kingdee EAS OA approval automation.

## Prerequisites

- Node.js >= 18.0.0
- Google Chrome installed

## Usage

### Using npx (Recommended)

Run directly without installation:
```bash
npx @nickxiao42/kingdee-approval --host=your.kingdee.host.com
```

### Global Installation

```bash
# Install globally
npm install -g @nickxiao42/kingdee-approval

# Then run
kingdee-approval --host=your.kingdee.host.com --cred=username:password
```

### Cursor MCP Configuration

To use this server with Cursor, add the following configuration to your `.cursor/mcp-config.json`:

```json
{
  "mcpServers": {
    "kingdee": {
      "command": "npx",
      "args": [
        "@nickxiao42/kingdee-approval",
        "--host=your.kingdee.host.com",
        "--cred=username:password"
      ]
    }
  }
}
```

Replace:
- `your.kingdee.host.com` with your Kingdee EAS host
- `username:password` with your credentials

The configuration will allow Cursor to:
1. Automatically start the MCP server when needed
2. Use npx to ensure you always have the latest version
3. Provide the necessary host and credentials

### Options

- `--host=hostname`: Required. The Kingdee EAS host URL
- `--cred=user:pass`: Optional. Login credentials in format "username:password"
- `--head`: Optional. Run browser in headed mode (visible browser UI)
- `--test`: Optional. Run in test mode (only executes login and listTickets)
- `--chrome=path`: Optional. Path to Chrome executable

### Environment Variables

- `KINGDEE_HOST`: Alternative to --host argument
- `KINGDEE_CREDENTIAL`: Alternative to --cred argument, format: "username:password"
- `KINGDEE_CHROME`: Alternative to --chrome argument, path to Chrome executable

### Default Chrome Paths

The server will look for Chrome in the following locations by default:

- macOS: `/Applications/Google Chrome.app/Contents/MacOS/Google Chrome`
- Windows: `C:\Program Files\Google\Chrome\Application\chrome.exe` or `C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`
- Linux: `/usr/bin/google-chrome`

If Chrome is installed in a different location, use the `--chrome` option or `KINGDEE_CHROME` environment variable to specify the correct path.

## MCP Tools

This server provides the following MCP tools:

1. `listTickets`: List all pending approval tickets
2. `approve`: Approve specified tickets
3. `takeScreenshot`: Take a screenshot of the current browser state

## License

MIT