open-index/open-npm huggingface dataset:
npm package: @kenoxa/npm-registry-mock
Description: NPM registry mock for testing using verdaccio
Author: Sascha Tandel
Latest version: 0.1.1

# @kenoxa/npm-registry-mock

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Features](#features)
- [Available Scripts](#available-scripts)
- [Create a release](#create-a-release)
- [Folder Structure](#folder-structure)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Features

- Mock the NPM Registry for testing

## Available Scripts

### npm start

Runs the app in the development mode.

### npm test

Two sub scripts will came in handy from time to time:

- `npm start test.watch`: re-run tests on change
- `npm start test.coverage`: creates a coverage report at `coverage/lcov-report/index.html`

### npm run format

Formats all sources using prettier.

## Create a release

1. Update changelog
2. `npm run format`
3. `npm test`
4. git commit -a -m "chore: prepare release`
5. [npm version [\<newversion> | major | minor | patch] -m "chore: release"](https://docs.npmjs.com/cli/version)
6. `npm run release`

## Folder Structure

### `src/`

Put all your source code including your test files here. Test files
are matched using the following regexp:

- `src/**/__tests__/*.{js,jsx,ts,tsx}`: matches every file within a `__tests__` directory but not in child directories
- `src/**/*.{spec,test}.{js,jsx,ts,tsx}`: matches `*.test.js` and `*.spec.js` files; some for the other extensions
npm package: @kenpb/parcel-plugin-ifdef
Description: TypeScript conditional compilation.
Author: Kenneth P. Barquero
Latest version: 1.1.2

# parcel-plugin-ifdef

An opinionated Parcel plugin that runs TypeScript conditional compilation `(#if ... #elif ... #else ... #endif)` it's just a simple wrapper around the awesome [@nippur72/ifdef-loader](https://github.com/nippur72/ifdef-loader) for Webpack go check it out!.

# Installation
```sh
npm install @kenpb/parcel-plugin-ifdef --save-dev
# or with yarn
yarn add -D @kenpb/parcel-plugin-ifdef
```

# Usage

We supply the values for the expressions as environment variables to Parcel and the bundle will remove or add the code accordingly.

For quick reference I've borrowed a couple examples, assuming there's a variable called env passed at compilation time, e.g:

```sh
npm run dev # cross-env env=PRODUCTION parcel example.ts
```

```js
/// #if env == 'PRODUCTION'
/* Only this one will make it */
console.log('Production!');
/// #elif env == 'DEBUG'
/* This guy will be deleted */
console.log('Debug!');
/// #else
/* This one too */
console.log('Something else!');
/// #endif
```

You can check more advanced examples at the [ifdef-loader repo](https://github.com/nippur72/ifdef-loader)

# TODO

* Allow extra values to be passed from a js or config file, quite simple, didn't have need/time to.
npm package: @kenpottr/vox-apiclient-nodejs
Description: Voximplant API client library
Author: Zingaya Inc.
Latest version: 1.1.6-p5

# Voximplant API client library
#### Version 1.1.6-p3

## Changelog by @kenpottr
 
- [1.1.6-p3] Allow passing creds as string (not only filename)
- [1.1.6-p3] Enables type definition generation

## Prerequisites

In order to use Voximplant Node.js SDK, you need the following:
1. A developer account. If you don't have one, [sign up here](https://voximplant.com/sign-up/).
1. A private API key. There are 2 options to obtain it: 
    1. Either generate it in the [Voximplant Control panel](https://manage.voximplant.com/settings/service_accounts)
    1. Or call the [CreateKey](https://voximplant.com/docs/references/httpapi/managing_role_system#createkey) HTTP API method with the specified [authentication parameters](https://voximplant.com/docs/references/httpapi/auth_parameters). You'll receive a response with the __result__ field in it. Save the __result__ value in a file (since we don't store the keys, save it securely on your side).
1. Node.js >=10

## How to use

Go to your project folder and install the SDK using `npm`:

```bash 
npm i --save @voximplant/apiclient-nodejs
```

Then import the SDK in your script

```js
const VoximplantApiClient = require("@voximplant/apiclient-nodejs").default;
```

Next, specify the path to the file with the __result__ value either in the constructor or using the environment.

__constructor__:

```js
const client = new VoximplantApiClient("/path/to/credentials.json");
```
__env__:
```bash
export VOXIMPLANT_CREDENTIALS=/path/to/credentials.json
```

## Examples
### Start a scenario
```js
const VoximplantApiClient = require("@voximplant/apiclient-nodejs").default;
const client = new VoximplantApiClient();
client.onReady = function(){
  // Start the scripts from the account.
  client.Scenarios.startScenarios({ruleId: '1',
            scriptCustomData: 'mystr'})
        .then(ev=>console.log(ev))
        .catch(err=>console.error(err));
};
```

### Send an SMS
```js
const VoximplantApiClient = require("@voximplant/apiclient-nodejs").default;
const client = new VoximplantApiClient();
client.onReady = function(){
  // Send the SMS message with text "Test message" from the phone number 447443332211 to the phone number 447443332212.
  client.SMS.sendSmsMessage({source: '447443332211',
            destination: '447443332212',
            smsBody: 'Test message'})
        .then(ev=>console.log(ev))
        .catch(err=>console.error(err));
};
```

### Get a call history item

```js
const VoximplantApiClient = require("@voximplant/apiclient-nodejs").default;
const client = new VoximplantApiClient();
client.onReady = function(){
  // Get the first call session history record from the 2012-01-01 00:00:00 UTC to the 2014-01-01 00:00:00 UTC
  client.History.getCallHistory({fromDate: new Date('2012-01-01 00:00:00 GMT'),
            toDate: new Date('2014-01-01 00:00:00 GMT'),
            count: '1',
            timezone: 'Etc/GMT'})
        .then(ev=>console.log(ev))
        .catch(err=>console.error(err));
};
```