open-index/open-npm huggingface dataset:
npm package: @nodesleep/ts-utils
Description: A collection of useful utility functions and types for TypeScript developers.
Author: Aron Sweet
Latest version: 1.0.1

# ts-utils

A collection of useful utility functions and types for TypeScript developers.

## Features

- **Type Guards**: Functions to help narrow types safely.
- **Utility Types**: Custom types that can be reused in projects.
- **Assertion Functions**: Functions to assert types at runtime.
- **Data Validation**: Simple schema-based validation for objects.
- **Common Helpers**: Utility functions for everyday tasks.

## Installation

You can install `ts-utils` using npm:

```bash
npm install @nodesleep/ts-utils
```
or using yarn:
```bash
yarn add @nodesleep/ts-utils
```

## Usage
### Type Guards
```Javascript
import { isString, isNumber } from '@nodesleep/ts-utils';

const value: unknown = 'hello';
if (isString(value)) {
  console.log(`The value is a string: ${value}`);
}

const anotherValue: unknown = 42;
if (isNumber(anotherValue)) {
  console.log(`The value is a number: ${anotherValue}`);
}
```
### Utility Types
```Javascript
import { DeepPartial, Nullable } from '@nodesleep/ts-utils';

type ExampleType = {
  name: string;
  age: number;
};

const partialExample: DeepPartial<ExampleType> = { name: 'John' };
const nullableExample: Nullable<string> = null;
```
### Assertion Functions
```Javascript
import { assertIsString, assertIsNumber } from '@nodesleep/ts-utils';

const someValue: unknown = 'hello';
assertIsString(someValue);
console.log(`The value is a string: ${someValue}`);

const anotherValue: unknown = 42;
assertIsNumber(anotherValue);
console.log(`The value is a number: ${anotherValue}`);
```
### Data Validation
```Javascript
import { validateObject, validateArray } from '@nodesleep/ts-utils';

const schema = {
  name: (value: unknown): value is string => typeof value === 'string',
  age: (value: unknown): value is number => typeof value === 'number',
};

const person = {
  name: 'Alice',
  age: 30,
};

if (validateObject(person, schema)) {
  console.log('Person is valid');
} else {
  console.log('Person is invalid');
}
```
### Common Helpers
``` Javascript
import { deepClone, mergeObjects, flattenArray } from '@nodesleep/ts-utils';

const obj1 = { a: 1 };
const obj2 = { b: 2 };
const merged = mergeObjects(obj1, obj2);
console.log(merged); // { a: 1, b: 2 }

const nestedArray = [[1, 2], [3, 4]];
const flatArray = flattenArray(nestedArray);
console.log(flatArray); // [1, 2, 3, 4]

const original = { key: 'value' };
const clone = deepClone(original);
console.log(clone); // { key: 'value' }
```
## Contributing
Contributions are welcome! Please open an issue or submit a pull request.
## License
This project is licensed under the MIT License.
npm package: @nodeslinks/plotly.js-dist
Description: The open source javascript graphing library that powers plotly
Latest version: 2.9.3

# plotly.js-dist

Ready-to-use plotly.js distributed bundle.

Contains trace modules `bar`, `barpolar`, `box`, `candlestick`, `carpet`, `choropleth`, `choroplethmapbox`, `cone`, `contour`, `contourcarpet`, `densitymapbox`, `funnel`, `funnelarea`, `heatmap`, `heatmapgl`, `histogram`, `histogram2d`, `histogram2dcontour`, `icicle`, `image`, `indicator`, `isosurface`, `mesh3d`, `ohlc`, `parcats`, `parcoords`, `pie`, `pointcloud`, `sankey`, `scatter`, `scatter3d`, `scattercarpet`, `scattergeo`, `scattergl`, `scattermapbox`, `scatterpolar`, `scatterpolargl`, `scatterternary`, `splom`, `streamtube`, `sunburst`, `surface`, `table`, `treemap`, `violin`, `volume` and `waterfall`.

For more info on plotly.js, go to https://github.com/plotly/plotly.js#readme

## Installation

```
npm install plotly.js-dist
```

## Usage

```js
// ES6 module
import Plotly from "plotly.js-dist";

// CommonJS
var Plotly = require("plotly.js-dist");
```

## Copyright and license

Code and documentation copyright 2021 Plotly, Inc.

Code released under the [MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).

Docs released under the [Creative Commons license](https://github.com/plotly/documentation/blob/source/LICENSE).

Please visit [complete list of dependencies](https://www.npmjs.com/package/plotly.js/v/2.5.1?activeTab=dependencies).

npm run custom-bundle -- --unminified  --out nl --traces scatter,sankey,bar
npx terser plotly-nl.js -m -o plotly.js
npm package: @nodesource/ncm-ci
Description: CI tool for NCM 2.0
Author: NodeSource
Latest version: 9.0.6

# @nodesource/ncm-ci

[![Build Status](https://travis-ci.org/nodesource/ncm-ci.svg?branch=master)](https://travis-ci.org/nodesource/ncm-ci)

[NCM](https://nodesource.com/products/certified-modules) for CICD systems.

- [Read the docs](https://docs.nodesource.com/ncm_v2/docs#ci-overview)
- [Check out an example repository set up with ncm-ci](https://github.com/nodesource/ncm-ci-example)
- [__Sign up for a professional tier account to get started!__](https://accounts.nodesource.com/)

## Usage

```bash
$ cd express
$ NCM_TOKEN=token ncm-ci
NCM
express v4.16.3
Pass: 266, Whitelisted: 0, Fail: 4

      License
       Vulnerability
        Uncertified

   85  V  debug v1.0.5
   85  V  eslint v2.13.1
    0 L   jsonify v0.0.0
   78  V  shelljs v0.6.1

```

<img src='screenshot.jpg' />

The tool will exit with a non-0 exit code if one or more dependencies failed
the certification check.

```bash
$ ncm-ci
$ echo $?
1
```

## Installation

Either install as a global:

```bash
$ npm install -g @nodesource/ncm-ci
```

Or use npx to install and invocate the tool in one line:

```bash
$ npx @nodesource/ncm-ci
```

## License & copyright

Copyright &copy; NodeSource.

Licensed under the MIT open source license, see the LICENSE file for details.
npm package: @nodesource/ncm-project
Description: Set up a NCM project
Latest version: 3.1.0

<h1 align='center'>ncm-project</h1>
<h5 align='center'>Set up a NCM project by installing this node module.</h5>

## Usage

While [__NCM__](https://nodesource.com/products/certified-modules) will work for any `npm install` on your system, it works at its best when it knows which project a `npm install` call belongs to.
Therefore this module, `ncm-project`, creates or extends a `.npmrc` in your project folder and sets the registry value to
your local _NCM Desktop_ instance. All following `npm install` calls in this project will then
be handled by [__NCM__](https://nodesource.com/products/certified-modules). Please make sure you're always running __NCM Desktop__ for uninterrupted
operation:

```bash
$ cd my-project
$ npm install --save @nodesource/ncm-project
```

The created `.npmrc` file should then be committed and therefore used by the whole team:

```bash
$ git add package.json package-lock.json .npmrc
$ git commit -m 'add NCM'
```

That's it, now just tell your teammates to run _NCM Desktop_ too (if they don't do so already) and your project is fully configured for [__NCM__](https://nodesource.com/products/certified-modules)!

## Troubleshooting

If your `npm install` times out (`ENOTFOUND`) or just hangs without any explanation, please make sure your _NCM Desktop_ app is up and running, and maybe restart it too.

## Development

1. Clone this repository and run `npm install`
2. Create a temporary project
3. Inside that project, run `npm install file:PATH-TO-THIS-REPOSITORY-ON-DISK`

## License

MIT
npm package: @nodesource/ncm-proxy
Description: Local Proxy for NCM 2.0
Author: NodeSource
Latest version: 1.0.0

# ncm-proxy
Local Proxy for [NCM 2.0](https://docs.nodesource.com/ncm_v2/docs).

## About

This is a simple proxy server that is run locally on the computer doing the `npm` installations. When an install happens it will use the NCM API to look up score data and then either just log what was done or rewrite the proxied results to prevent installs of non-certified information.

## Usage

Start an ncm proxy server on port `14313` (`14`=N, `3`=C, `13`=M):

```bash
$ NCM_TOKEN=xxx npx @nodesource/ncm-proxy
```

To obtain an ncm token please see [the docs](https://docs.nodesource.com/ncm_v2/docs#ci-createatoken).

Then configure as your npm registry:

```bash
$ npm install express --registry=http://localhost:14313
```

## Custom port

Set the `PORT` environment variable to launch on a different port:

```bash
$ NCM_TOKEN=xxx PORT=8080 npx @nodesource/ncm-proxy
```

## Custom registry

You can also use a different registry than the default `https://registry.npmjs.org/`:

```bash
$ NCM_TOKEN=xxx npx @nodesource/ncm-proxy https://registry.npmjs.org
```

## Routes

All except listed routes are simply proxied through:

### `GET /:package`
### `GET /@scope%2f:package`

Rewrite tarball urls to point at the proxy.

### `GET /:package/-/:package-:version.tgz`
### `GET /@:scope?/:package/-/:package-:version.tgz`

Return `404` if the module has a score lower than 85 or is on the whitelist,
otherwise proxy through.

# License & copyright

Copyright © NodeSource.

Licensed under the MIT open source license, see the LICENSE file for details.
npm package: @nodesty/api-client
Description: A powerful API client for Nodesty.
Author: hanzydev
Latest version: 2.0.4

# Nodesty API Client

A powerful API client for Nodesty.

## 📦 Features

- ⚡ Fast & Secure
- 🔌 Easy to use
- ✅ Type-Safe
- ⚙️ Modular & Scalable
- 💯 %100 Coverage of Nodesty API

## 🚀 Getting Started

### Installation

```bash
npx nypm i @nodesty/api-client
```

### Usage

```javascript
import { NodestyApiClient } from '@nodesty/api-client';

const api = new NodestyApiClient({
    accessToken: 'YOUR_NODESTY_PERSONAL_ACCESS_TOKEN',
});

// Now you can access different services:
const user = api.user;
const vps = api.vps;
const firewall = api.firewall;
const dedicatedServer = api.dedicatedServer;
const mailHosting = api.mailHosting;
```

## ❤️ Contribute

Contributions are always welcome! Please read the [contribution guidelines](CONTRIBUTING.md) first.

## ⚖️ License

[MIT](LICENSE)