open-index/open-npm huggingface dataset:
npm package: @nsev/broadcast-channel
Description: NodeJS-Style Events for BroadcastChannel
Author: Expo
Latest version: 1.1.1

<div align="center">

# @nsev/broadcast-channel

[![documentation](https://img.shields.io/badge/-documentation-brightgreen.svg)](https://nsev.expo.moe/broadcast-channel/) [![npm](https://img.shields.io/badge/-npm-red.svg)](https://npm.im/@nsev/broadcast-channel) [![github](https://img.shields.io/badge/-github-blue.svg)](https://github.com/nodestyleevents/broadcast-channel/tree/master)<br/>
[![mit license](https://img.shields.io/badge/license-mit-orange.svg)](https://nsev.expo.moe/broadcast-channel/LICENSE.txt) [![mom made pizza](https://img.shields.io/badge/type-safe-blue.svg)](https://typescriptlang.org/) [![mom made pizza](https://img.shields.io/badge/mom%20made-pizza-white.svg)](https://www.youtube.com/watch?v=IO9XlQrEt2Y)

</div>

## About

A Wrapper around [BroadcastChannel](https://github.com/pubkey/broadcast-channel) that uses [@3xpo/events](https://npm.im/@3xpo/events) for node-style events in the browser.

## Installation

```bash
pnpm i @nsev/broadcast-channel
```

## Usage

### Basics

###### Tab 1

```ts
import { BroadcastChannel } from '@nsev/broadcast-channel';
const channel = new BroadcastChannel('foobar');
channel.send('I am not alone');
```

###### Tab 2

```ts
import { BroadcastChannel } from '@nsev/broadcast-channel';
const channel = new BroadcastChannel('foobar');
channel.on('message', (message) => {
  console.log(message); // I am not alone
});
```

### Typesafety

Just like in the original, just pass the type as a generic.

```ts
import { BroadcastChannel } from '@nsev/broadcast-channel';
type Message = {
  foo: 'bar';
  bar: 'hi';
} | {
  foo: 'baz';
  baz: string;
};
const channel = new BroadcastChannel<Message>('foobar');

channel.on('message',e=>{
  // e is of type Message
})

// ok
channel.send({
  foo: 'bar',
  bar: 'hi',
});

// ok
channel.send({
  foo: 'baz',
  baz: 'hi',
});

// ok
channel.send({
  foo: 'baz',
  baz: 'hello there',
});

// not ok
channel.send({
  foo: 'bar',
  baz: 'hi',
});

// not ok
channel.send({
  foo: 'baz',
  bar: 'hi',
});

// not ok
channel.send({
  foo: 'bar',
  bar: 'hi',
  baz: 'hello there',
});
```
npm package: @nsf-open/ember-contact-utils
Description: Utilities for phone numbers, email, physical addresses, and more.
Author: National Science Foundation
Latest version: 2.0.1

@nsf-open/ember-contact-utils
==============================================================================
Utilities for phone numbers, email, physical addresses, and more. _(or less, as it stands right now)_


Installation
------------------------------------------------------------------------------
```
ember install @nsf-open/ember-contact-utils
```


API
------------------------------------------------------------------------------
[Docs](docs/README.md)


Compatibility
------------------------------------------------------------------------------
* Ember.js v3.16 or above
npm package: @nsf-open/ember-currency-utils
Description: Utilities for converting numbers to currency, and currency to numbers.
Author: National Science Foundation
Latest version: 2.0.1

@nsf-open/ember-currency-utils
==============================================================================
Utilities for converting numbers to currency, and currency to numbers.


Installation
------------------------------------------------------------------------------
```
ember install @nsf-open/ember-currency-utils
```


API
------------------------------------------------------------------------------
[Docs](docs/README.md)


Compatibility
------------------------------------------------------------------------------
* Ember.js v3.16 or above
npm package: @nsf-open/ember-datetime-utils
Description: Date and time parsing + formatting utilities using MomentJS.
Author: National Science Foundation
Latest version: 2.0.1

@nsf-open/ember-datetime-utils
==============================================================================
Date and time parsing + formatting utilities using [MomentJS](https://momentjs.com/).


Installation
------------------------------------------------------------------------------
```
ember install @nsf-open/ember-datetime-utils
```

API
------------------------------------------------------------------------------
[Docs](docs/README.md)


Compatibility
------------------------------------------------------------------------------
* Ember.js v3.16 or above
npm package: @nsf-open/ember-general-utils
Description: @nsf-open/ember-general-utils ============================================================================== A catch-all for utilities methods that don't have a more specific home.
Author: National Science Foundation
Latest version: 2.0.1

@nsf-open/ember-general-utils
==============================================================================
A catch-all for utilities methods that don't have a more specific home.

Installation
------------------------------------------------------------------------------
```
ember install @nsf-open/ember-general-utils
```

API
------------------------------------------------------------------------------
[Docs](docs/README.md)


Compatibility
------------------------------------------------------------------------------
* Ember.js v3.16 or above
npm package: @nsf-open/ember-ui-foundation
Description: The starting point for Ember Application UI libraries at NSF.
Latest version: 1.10.0

[![npm version](https://badge.fury.io/js/@nsf-open%2Fember-ui-foundation.svg)](https://badge.fury.io/js/@nsf-open%2Fember-ui-foundation)
[![CI](https://github.com/nsf-open/ember-ui-foundation/actions/workflows/ci.yml/badge.svg)](https://github.com/nsf-open/ember-ui-foundation/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/nsf-open/ember-ui-foundation/badge.svg?branch=main)](https://coveralls.io/github/nsf-open/ember-ui-foundation?branch=main)

@nsf-open/ember-ui-foundation
==============================================================================

The NSF UI Foundation library is the starting point for Ember Application user interfaces 
within NSF. See our [Storybook documentation](https://nsf-open.github.io/ember-ui-foundation) for all the details.

Shout-Outs
------------------------------------------------------------------------------

This library relies on and/or is heavily inspired by several other fantastic projects. We hope that the work 
done here is useful, and want to make special note of the very large shoulders that we've stood on to deliver
it. To name just a few:

- [ember-bootstrap](https://github.com/kaliber5/ember-bootstrap)
- [ember-wormhole](https://github.com/yapplabs/ember-wormhole)
- [ember-concurrency](https://github.com/machty/ember-concurrency)
- [Popper](https://popper.js.org/)
- [Storybook](https://github.com/storybookjs/storybook)


Compatibility
------------------------------------------------------------------------------

* Ember.js v3.16 or above
* Node.js v12 or above
* ember-auto-import >= 2

Installation
------------------------------------------------------------------------------

```
npm install @nsf-open/ember-ui-foundation
```


Contributing
------------------------------------------------------------------------------

See the [Contributing](CONTRIBUTING.md) guide for details.


License
------------------------------------------------------------------------------

This project is licensed under the [MIT License](LICENSE.md).
npm package: @nsf-open/ember-username-utils
Description: Utilities to help stitch together a person's name.
Author: National Science Foundation
Latest version: 2.0.1

@nsf-open/ember-username-utils
==============================================================================
Utilities to help stitch together a person's name. 

With these tools in your application's belt taking several small strings like _"John"_, _"Hubert"_, 
and _"Doe"_, and turning them into longer string like _"John H. Doe"_ or _"Doe, John H."_ is a piece 
of cake.


Installation
------------------------------------------------------------------------------
```
ember install @nsf-open/ember-username-utils
```


API
------------------------------------------------------------------------------
[Docs](docs/README.md)


Compatibility
------------------------------------------------------------------------------
* Ember.js v3.16 or above
npm package: @nsfilho/n8n-nodes-usign
Description: uSign Node for N8N
Author: JBtec Digital Signage Ltda.
Latest version: 0.3.0

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

# n8n-nodes-starter

This repo contains example nodes to help you get started building your own custom integrations for [n8n](n8n.io). It includes the node linter and other dependencies.

To make your custom node available to the community, you must create it as an npm package, and [submit it to the npm registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry).

## Prerequisites

You need the following installed on your development machine:

* [git](https://git-scm.com/downloads)
* Node.js and pnpm. Minimum version Node 18. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL [here](https://github.com/nvm-sh/nvm). For Windows users, refer to Microsoft's guide to [Install NodeJS on Windows](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows).
* Install n8n with:
  ```
  pnpm install n8n -g
  ```
* Recommended: follow n8n's guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/).

## Using this starter

These are the basic steps for working with the starter. For detailed guidance on creating and publishing nodes, refer to the [documentation](https://docs.n8n.io/integrations/creating-nodes/).

1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template repository.
2. Clone your new repo:
   ```
   git clone https://github.com/<your organization>/<your-repo-name>.git
   ```
3. Run `pnpm i` to install dependencies.
4. Open the project in your editor.
5. Browse the examples in `/nodes` and `/credentials`. Modify the examples, or replace them with your own nodes.
6. Update the `package.json` to match your details.
7. Run `pnpm lint` to check for errors or `pnpm lintfix` to automatically fix errors when possible.
8. Test your node locally. Refer to [Run your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/) for guidance.
9. Replace this README with documentation for your node. Use the [README_TEMPLATE](README_TEMPLATE.md) to get started.
10. Update the LICENSE file to use your details.
11. [Publish](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) your package to npm.

## More information

Refer to our [documentation on creating nodes](https://docs.n8n.io/integrations/creating-nodes/) for detailed information on building your own nodes.

## License

[MIT](https://github.com/n8n-io/n8n-nodes-starter/blob/master/LICENSE.md)
npm package: @nsfmc/sanitarium
Description: this adds a small tool (`deflow`) for stripping flow types from some js, either stdin or files on disk and outputting to stdout again
Latest version: 1.0.0

# sanitarium

this adds a small tool (`deflow`) for stripping flow types from some js, either stdin or files on disk and outputting to stdout again


## usage as a binary

**installing**
```shell
yarn add -G https://github.com/nsfmc/sanitarium
```

**running**
```shell
deflow < path/to/file.js
pbpaste | deflow
```

## usage via yarn

**installing**
```shell
yarn add https://github.com/nsfmc/sanitarium
cd sanitarium
yarn
```

**running on a file**

```shell
yarn deflow -- < path/to/file.js
```

**running on clipboard**
```shell
pbpaste | yarn deflow --
```
npm package: @nsfocus/icons
Description: <h1 align="center"> Nsfocus Icons for React </h1>
Latest version: 2.1.0

<h1 align="center">
Nsfocus Icons for React
</h1>

<div align="center">

<!-- [![NPM version](https://img.shields.io/npm/v/@nsfocus/icons.svg?style=flat)](https://npmjs.org/package/@nsfocus/icons)
[![NPM downloads](http://img.shields.io/npm/dm/@nsfocus/icons.svg?style=flat)](https://npmjs.org/package/@nsfocus/icons) -->

</div>

## Install

```bash
yarn add @nsfocus/icons
```

## Basic Usage

You can import it directly or destructure from `@nsfocus/icons` when tree-shaking enabled.

```ts
import AlertOutlined from '@nsfocus/icons/AlertOutlined';
import { AlertOutlined } from '@nsfocus/icons';

// import AlertFilled from '@nsfocus/icons/AlertFilled';
// import AlertTwoTone from '@nsfocus/icons/AlertTwoTone';
import { AlertOutlined, AddEquipmentsOutlined } from '@nsfocus/icons';
```

## Component Interface

```ts
interface AntdIconProps {
  className?: string;
  onClick?: React.MouseEventHandler<SVGSVGElement>;
  style?: React.CSSProperties;
}
```

## Release

```bash
npm run generate
npm run compile
npm publish
```
npm package: @nsfocus/icons-vue
Description: Nsfocus Icons for Vue
Latest version: 2.0.6

<h1 align="center">
Nsfocus Icons for Vue
</h1>

<div align="center">

<!-- [![NPM version](https://img.shields.io/npm/v/@nsfocus/icons-vue.svg?style=flat)](https://npmjs.org/package/@nsfocus/icons-vue)
[![NPM downloads](http://img.shields.io/npm/dm/@nsfocus/icons-vue.svg?style=flat)](https://npmjs.org/package/@nsfocus/icons-vue) -->

</div>

## Install

```bash
yarn add @nsfocus/icons-vue
```

## Basic Usage

First, you should add the icons that you need into the library.

```js
import Vue from 'vue'
import { Filter } from '@nsfocus/icons-vue';
Vue.component(Filter.name, Filter);
```

After that, you can use antd icons in your Vue components as simply as this:

```jsx
<icon-filter />
```

## Build project

```bash
npm run generate # Generate files to ./src
npm run compile # Build library
npm run test # Runing Test
```
npm package: @nsfw-filter/save-pixels
Description: Saves an ndarray as an image to a file
Author: Mikola Lysenko
Latest version: 2.3.4

save-pixels
===========
Saves an ndarray to an image.

Example
=======
```javascript
var zeros = require("zeros")
var savePixels = require("save-pixels")

//Create an image
var x = zeros([32, 32])
x.set(16, 16, 255)

//Save to a file
savePixels(x, "png").pipe(process.stdout)
```

This writes the following image to stdout:

<img src=https://raw.github.com/mikolalysenko/save-pixels/master/example/example.png>

Install
=======

    npm install save-pixels

### `require("save-pixels")(array, type[, options])`
Saves an ndarray as an image with the given format

* `array` is an `ndarray` of pixels.  Assumes that shape is `[width, height, channels]`
* `type` is the type of the image to save.  Currently supported formats:

  + `"jpeg"`, `"jpg"` - Joint Photographic Experts Group format
  + `"gif"` - Graphics Interchange Format
  + `"png"` - Portable Network Graphics format
  + `"canvas"` - A canvas element

* `options` is an object that alters saving behavior

  + `quality` is the `Number` to use for saved image quality

    + This can only be used with a `"jpeg"` image
    + It range between 1 (low quality) and 100 (high quality) inclusively

**Returns** A stream that you can pipe to serialize the result, or a canvas element if the `type` is `"canvas"`.

# Credits
(c) 2013 Mikola Lysenko. MIT License
npm package: @nsfx/pg
Description: - `Base` - provide default `init` function and `dsn` prop - `ArrayQuery` - execute query by `sql`, `values` and push rows to `out` port
Author: im4LF
Latest version: 1.0.6

# Postgresql nodes

- `Base` - provide default `init` function and `dsn` prop
- `ArrayQuery` - execute query by `sql`, `values` and push rows to `out` port 

## Usage

### ArrayQuery

```js
'use strict'

const def = `
ticks(@nsfx/time/Ticks) -> tasks(@nsfx/pg/ArrayQuery) -> dispatch(./Dummy)
`

const props = {
    ticks: {
        interval: 5000
    },
    tasks: {
        dsn: 'pg://u:p@host/dbname',
        sql: `select * from generate_series(1,5,1) as t(id) limit $1`,
        values: message => [ 2 ],
        shiftBy: 2,
        out: 'task'
    }
}

build(def, props, {}, (err, flow) => {

    flow.ticks.start.write()
})
```

### Custom query node

```js
// custom/SimpleQuery.node.js

module.exports = (args, env) => ({
    base: '@nsfx/pg/Base',
    out_: 1,
    _in(message, done) {

        let sql = `select * from generate_series(1,5,1) as t(id) limit $1`
        let values = [ 5 ]

        this.__pool.query(sql, values, (error, res) => {

            if (err) this.send('errors', { error, ...message })
            else this.send('out', { rows: res.rows, ...message })

            done()
        })
    }
})

// exp.flow.js

const def = `
ticks(@nsfx/time/Ticks) -> tasks(./custom/SimpleQuery) -> dispatch(./Dummy)
`

const props = {
    ticks: {
        interval: 5000
    },
    tasks: {
        dsn: 'pg://u:p@host/dbname',
    }
}

build(def, props, {}, (err, flow) => {

    flow.ticks.start.write()
})
```
npm package: @nshcore-npm/eslint-config-nshcore
Description: My strict eslint presets
Author: nshcore@protonmail.com
Latest version: 0.0.9

# eslint-config-nshcore


My preferred strict eslint rules for typescript projects.

##

Lots of rules to help with clean and consistent code style, but also to offer protection from some bad programming hbbits around async/await and promises.

## Plugins

```js
        '@typescript-eslint/eslint-plugin',
        'import',
        'import-newlines',
        'promise',
        'async-await'
```

## Extends

```js
        'plugin:@typescript-eslint/eslint-recommended',
        'plugin:@typescript-eslint/recommended',
        'plugin:import/errors',
        'plugin:import/warnings',
        'plugin:import/typescript'
```
npm package: @nshcore-npm/ts-oss-boiler
Description: Typescript open source software project boilerplate, configured with eslint and semantic releasing.
Author: nshcore@protonmail.com
Latest version: 1.0.2

#ts-oss-boiler

Serves as a boiler plate template project for typescript libraries

## Features

* Semantic release
* Eslint 
* Jest
* Typedoc

## Build system

Uses Bili and roll up for compiling Typescript to es2019 target

## Eslint Rules

Uses my highly opinionated Eslint rule set found [here](https://github.com/nshcore/eslint-config-nshcore)
npm package: @nshcore-npm/utility-ts
Description: A collection of helpful utilities for Typescript projects
Author: nshcore@protonmail.com
Latest version: 1.0.0

# utility-ts

A collection of helpful utilities for Typescript projects.

## Utilities

### Buffer Helper

Converts various types of arrays, strings and numbers to a buffer.

```js
    const stringBuffer = await BufferHelper.toBuffer('Hello World');
```

### Clone Helpers

An extremely fast function for deep-cloning an object which only contains simple values, i.e. primitives, arrays and nested simple objects.

```js
const foo = {
 prop1: 'hello',
 prop2: 'world',
}

const bar = CloneHelper.simpleDeepClone(foo);

console.assert(foo === bar);
```

### Common Helpers

A collection of general use guards such as.

* isObject
* isClassInstance
* notNullOrUndefined
* assertNever

### Generic Helper

Provides a .NetCore style Activator to instantiate generic types at runtime.

### Iterator Helpers

Methods to repeat functions multiple times.

### Map Helper

FastFlatMap provides same result as FlatMap in the es2019 standard but 40% quicker.

```js

const obj = {
 boringProp: 123,
 goodProp: 'abc',
 nestedProp: {
   boringProp: 456,
   goodProb: 'def'
 }
}

MapHelper.FastFlatMap(obj, 'goodProp');
```

this will result in 

```js

const result = [
 {
   goodProp: 'abc',
 },
 {
   goodProp: 'def',
 }
]
```

### Number helper

Assortment of number formatting functions.

### Object helper

Assortment of object functions for merging, flattening, serialising, sorting.

### Observable helper

Helper to convert observables to promises.

### String helper

Assortment of object functions for merging, flattening, serialising, sorting.

### Typed Array helper

Assortment of helpers to detect types of TypedArrays as well as converting them to buffers
npm package: @nshmp/nshmp-template-schematics
Description: Schematics for nshmp-ng-template
Latest version: 0.1.0

# Getting Started With Schematics

This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.

### Testing

To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `generate` command of the Angular CLI, but also has a debug mode.

Check the documentation with
```bash
schematics --help
```

### Unit Testing

`npm run test` will run the unit tests, using Jasmine as a runner and test framework.

### Publishing

To publish, simply do:

```bash
npm run build
npm publish
```

That's it!