open-index/open-npm huggingface dataset:
npm package: @nio/zenith-server
Description: zenith-server is a fork of the server component of RethinkDB Horizon, an open-source developer platform for building realtime, scalable web apps.
Author: RethinkDB
Latest version: 2.0.1

# Horizon Server

An extensible middleware server built on top of [RethinkDB](https://github.com/rethinkdb/rethinkdb) which exposes a websocket API to front-end applications.

## Documentation

Follow our documentation at [horizon.io/install](https://horizon.io/install) for instructions on installing Horizon.

## Requirements
The Horizon server requires some tools and libraries to be available before it
can run:

 * `node.js` - interpreter to run the Horizon server
 * `openssl` - generating ssl certificates
 * [`rethinkdb`](https://github.com/rethinkdb/rethinkdb) - for running a RethinkDB server

### OpenSSL

OpenSSL is required to generate the cert and key pair necessary to serve Horizon securely via HTTPS and WSS. Usually this is done on the production server where you are running Horizon, however to do this locally you'll need to have the OpenSSL installed.

* **OSX**    - `brew install openssl`
* **Ubuntu** -  [Follow this guide here](https://help.ubuntu.com/community/OpenSSL#Practical_OpenSSL_Usage).
* **Windows** - [Unofficial list of Windows OpenSSL Binaries](https://wiki.openssl.org/index.php/Binaries)

### RethinkDB

Check out [rethinkdb.com/install](https://rethinkdb.com/install) for the best method of installing RethinkDB on your platform.
npm package: @niocn/copier
Description: Scaffolding tool
Latest version: 1.0.2

# copier

Quick build project

## Install

```bash
npm install copier -g
```

## Quick Start

```js
// With copier installed locally, you can execute the following commands
copier [templateName] [projectName]
```

## templates

There are currently the following templates available for choice
- composition-api-tsx
- nodecli
npm package: @niocn/md-loader
Description: A WebPack's Loader used to help parse MD files
Author: saltires
Latest version: 0.1.2

# md-loader

[![License][license-img]][license-url] [![NPM Downloads][downloads-img]][downloads-url] [![NPM Version][version-img]][version-url] [![Dependency Status][dependency-img]][dependency-url] [![devDependency Status][devdependency-img]][devdependency-url] [![Code Style][style-img]][style-url]

> A WebPack's Loader used to help parse MD files

## Installation

```shell
$ npm install md-loader

# or yarn
$ yarn add md-loader
```

## Usage

```javascript
const mdLoader = require('md-loader');
const result = mdLoader('w');
```

## API
npm package: @niocn/plugin-transform-arrow-functions
Description: plugin-transform-arrow-functions 
Author: saltires
Latest version: 0.1.5

# @niocn/plugin-transform-arrow-functions

> @niocn/plugin-transform-arrow-functions

## Installation

```shell
$ npm install @niocn/plugin-transform-arrow-functions
 -D

# or yarn
$ yarn add @niocn/plugin-transform-arrow-functions -D
```

## Usage

```javascript
const pluginTransformArrowFunctions = require('plugin-transform-arrow-functions');
const babelCore = require('@babel/core');
const babelTypes = require('@babel/types');

const source = `
const sum = (a, b) => {
  return a + b
}
`;

const result = babelCore.transform(source, {
  plugins: [pluginTransformArrowFunctions],
});
```
npm package: @niocn/plugin-transform-class
Description: The Babel plug-in for transforming classes in ES2015
Author: saltires
Latest version: 0.1.6

# @niocn/plugin-transform-class

![coverage](https://img.shields.io/badge/Coverage-74.07%25%09-green) ![test](https://img.shields.io/badge/passed-tests-blue)

> The Babel plug-in for transforming classes in ES2015

## Installation

```shell
$ npm install @niocn/plugin-transform-class -D

# or yarn
$ yarn add @niocn/plugin-transform-class -D
```

## Getting started

```javascript
const pluginTransformClass = require('@niocn/plugin-transform-class');
const babelCore = require('@babel/core');
const babelTypes = require('@babel/types');

const source = `
class Person {
  constructor(name, age) {
    this.name = name;
    this.age = age;
  }

  play() {
    console.log('playing')
  }

  number = '100'

  static range = 'unit'
}
`;

const result = babelCore.transform(source, {
  plugins: [pluginTransformClass],
});

console.log(result.code);
```
npm package: @niocn/plugin-transform-import
Description: For some libraries, such as lodash can achieve on-demand loaded by converting the import statement
Author: saltires
Latest version: 0.1.3

# @niocn/plugin-transform-import

![coverage](https://img.shields.io/badge/Coverage-52.77%25-green) ![test](https://img.shields.io/badge/passed-tests-blue)

> For some libraries such as LoDash, you can convert import statements to load on demand

## Installation

```shell
$ npm install @niocn/plugin-transform-import -D

# or yarn
$ yarn add @niocn/plugin-transform-import -D
```

## Getting started

```javascript
const pluginTransformImport = require('@niocn/plugin-transform-import');
const babelCore = require('@babel/core');
const babelTypes = require('@babel/types');

const source = `
import { flatten as x, concat } from 'lodash'
`;

const result = babelCore.transform(source, {
  plugins: [pluginTransformImport],
});

console.log(result.code);

test('test', () => {
  expect(result.code).toMatch(/lodash\/x/);
  expect(result.code).toMatch(/import concat from "lodash\/concat"/);
});
```