open-index/open-npm huggingface dataset:
npm package: @jovercao/egg-graphql
Description: egg graphql plugin
Author: jtyjty99999, jovercao
Latest version: 0.1.13

# egg-graphql
---
> 该项目派生自[egg-graphql](https://github.com/eggjs/egg-graphql)，npm包名更换为`@jovercao/egg-graphql`

## 使用方法

- 架构文件

在 `egg-graphq`的基础上添加了以下功能：

1. 添加 #import 指令的支持，以支持文件拆分功能，详见下文
2. 添加代码编译报错提示（精确到行列），帮助你迅速找到grahql错误文件位置
3. 解决了对graphql及graphql-tools版本依赖过旧带来的问题。

## API

- ctx.connector, 目录 `app/graphql/connector/` 下的js/ts文件会被映射到`ctx.connector`对象中
- app.resolver， 目录 `app/graphql/resolver/` 下的js/ts文件会被合并并映射到`app.resolver`对象中
- app.graphql.schema，GraphQLSchema类型
- app.graphql.resolver, 同app.resolver
- ctx.service.graphql, 服务端gql查询器
  - ctx.service.graphql.execute(gql, variables, operationName): Promise<data>
  - ctx.service.graphql.query(gql, variables, operationName): Promise<data>
  - ctx.service.graphql.mutation(gql, variables, operationName): Promise<data>

## gql文件支持 #import指令使用方式

**目录结构如下：**

- src
  - user
    - schema.graphql
    - user.graphql
    - extFields.graphql

**文件内容如下：**

```graphql
# schema.graphql
#import ./user.graphql

type Query {
  user(id: Int!): User!
}
```

```graphql
# user.graphql
type User {
  name: String!
  age: Int!
  password: String
  #import ./extFields.graphql
}
```

```graphql
# extFields.graphql
enabled: Boolean!
createAt: Date!
updateAt: Date!
```

**编译后结果：**

```graphql
type User {
  name: String!
  age: Int!
  password: String
  enabled: Boolean!
  createAt: Date!
  updateAt: Date!
}

type Query {
  user(id: Int!): User!
}
```
npm package: @jovercao/expr-engine
Description: J3表达式引擎
Author: JoverCao
Latest version: 0.3.5

# 表达式引擎

## 使用

```js
import { create } from '@jovercao/expr-engine'

create().exec('$if($.test, "这个", "那个")', {
  /**
   * IF条件
   */
  test: true
})
// => '这个'
```

## 支持的内容

- 变量/函数，必须以 $开头
- 二运算符： `==`, `!=`, `===`, `!==`, `<`, `<=`, `>`, `>=`, `<<`,`>>`, `>>>`, `+`, `-`, `*`, `/`, `%`, `**`, `|`, `^`, `&`
- 一元运算符: `-`, `+`, `!`, `~`
- 逻辑运算符： `&&`, `||`
- 条件运算符： `test ? consequent : alternate`，亦可以使用 `$if` 函数替代

## 安全性

- 环境隔离，表达式仅可访问 `helpers` 下的公共函数，即以$开头的成员
- helpers函数，`this` 指向 `helpers`

## 扩展 helpers

```js
new ExprEngin({
  helpers: {
    $hello(name: string) {
      return `hello ${name}`
    }
  }
})
```
npm package: @jovercao/gql-loader
Description: > 本项目 fork 自 [gq-loader](https://github.com/Houfeng/gq-loader)
Latest version: 0.2.0

# @jovercao/gql-loader

> 本项目 fork 自 [gq-loader](https://github.com/Houfeng/gq-loader)
npm package: @jovercao/sftpd
Description: A sftp server by nodejs.
Author: JoverCao
Latest version: 0.1.3

# SFTPD

> Sftpd is the sftp server by nodejs, with permission virtual path.

[中文文档](./README_cn.md)

## Configuration

Cofigure file is 3 parts：

1. App configuration，it's store at the executable file path, filename: `app.config.json`.
2. User configuration, it's store at user home dir, filename: `.sftpd.json`.
3. Workspace configuration, it's store at cwd, filename: `.sftpd.json`.

The configuration load order： App configuration -> User configuration -> Workspace configuration，The post-loaded configuration overrides the previously loaded configuration.

**Settings:**

```json
# example/app.config.json

{
  // The host cert file，the ${appRoot} variable is dir of then executable file。
  "hostKeyFile": "${appRoot}/host_rsa",
  // default data dir, user root dir on that "dataDir/username"
  "dataDir": "${appRoot}/datas",
  // Greetings message
  "greeting": "Good luck!",
  // banner message
  "banner": "Wellcome to SFTP test server.",
  "ident": "sftp server by jover",
  // use debug mode
  "debug": true,
  // The maximum of connections for server
  "maxConnections": 1000,
  // user list
  "users": [
    {
      "username": "test1",
      // Password, encryption by hmac-sha256，and format with base64 encoding.
      "password": "4Dp32BhmHO533HGr5Pp3wFuZT216jc5hGLjxGGV+BOw=",
      // User root dir, the location of virtual path "/"
      "rootDir": "${appRoot}/datas/testUser",
      // The maximum of connections on for user
      "maxConnections": 1,
      "permission": {
        "MKDIR": true,
        "RMDIR": true,
        // read file
        "READ": true,
        // write file
        "WRITE": true,
        // Remove file
        "REMOVE": true,
        // Create file
        "CREATE": true
      }
    },
    {
      "username": "test2",
      "password": "4Dp32BhmHO533HGr5Pp3wFuZT216jc5hGLjxGGV+BOw=",
      "permission": {
        "MKDIR": true,
        "RMDIR": true,
        "READ": true,
        "WRITE": true,
        "REMOVE": true,
        "CREATE": true
      }
    }
  ],
  // server listen port
  "port": "22",
  // Is enable ttl，default value false
  "ttlEnable": false,
  // lock
  "ipLockTimes": 5,
  // If connections count is over ipLockTimes in ipLockSpan by same ip, the ip will be locked.
  "ipLockSpan": 300,
  // If not locked, the connections cout will be clean after ipLockTTL seconds.
  "ipLockTTL": 30,

  // log4js configrations see：`https://github.com/log4js-node/log4js-node`
  // "log": {...}
}
```

## Developement

```shell
npm install
npm run example
```

## Command

Pls look for help：

```shell
sftpd -h
```

## Version

### 1.0.3

- add `reconfigure` command, support hot reload config
- add `stop` command, stop service

## Thanks

sftpd is base by [ssh2](https://github.com/mscdex/ssh2), thanks mscdex。
npm package: @jovercao/vue-devtools
Description: An electron devtools extension for debugging Vue.js applications.
Author: zce
Latest version: 6.0.0-beta1

# vue-devtools

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

> An electron devtools extension for debugging Vue.js applications.

## Installation

```sh
$ yarn add vue-devtools -D

# or npm
$ npm install vue-devtools --save-dev
```

## Usage

### Installing

calling `install` in your `main.js`

```js
const { app } = require('electron')
app.on('ready', () => {
  // ...
  if (process.env.NODE_ENV !== 'production') {
    require('vue-devtools').install()
  }
  // ...
})
```

### Uninstalling

calling `uninstall` in your `main.js`

```js
const { app } = require('electron')
app.on('ready', () => {
  // ...
  if (process.env.NODE_ENV !== 'production') {
    require('vue-devtools').uninstall()
  }
  // ...
})
```

## API

### install()

Install Vue.js devtools in Electron devtools.

### uninstall()

Uninstall Vue.js devtools in Electron devtools.

## Contributing

1. **Fork** it on GitHub!
2. **Clone** the fork to your own machine.
3. **Checkout** your feature branch: `git checkout -b my-awesome-feature`
4. **Commit** your changes to your own branch: `git commit -am 'Add some feature'`
5. **Push** your work back up to your fork: `git push -u origin my-awesome-feature`
6. Submit a **Pull Request** so that we can review your changes.

> **NOTE**: Be sure to merge the latest from "upstream" before making a pull request!

## License

[MIT](https://github.com/vuejs/vue-devtools/blob/master/LICENSE) &copy; [vuejs/vue-devtools](https://github.com/vuejs/vue-devtools)

[MIT](LICENSE) &copy; [汪磊](https://zce.me/)



[travis-image]: https://img.shields.io/travis/zce/vue-devtools.svg
[travis-url]: https://travis-ci.org/zce/vue-devtools
[downloads-image]: https://img.shields.io/npm/dm/vue-devtools.svg
[downloads-url]: https://npmjs.org/package/vue-devtools
[version-image]: https://img.shields.io/npm/v/vue-devtools.svg
[version-url]: https://npmjs.org/package/vue-devtools
[license-image]: https://img.shields.io/npm/l/vue-devtools.svg
[license-url]: https://github.com/zce/vue-devtools/blob/master/LICENSE
[dependency-image]: https://img.shields.io/david/zce/vue-devtools.svg
[dependency-url]: https://david-dm.org/zce/vue-devtools
[devdependency-image]: https://img.shields.io/david/dev/zce/vue-devtools.svg
[devdependency-url]: https://david-dm.org/zce/vue-devtools?type=dev
[style-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[style-url]: http://standardjs.com
npm package: @jovian/aes-encrypt
Description: Simple AES-256-CBC encyption/decryption of target files.
Latest version: 0.0.2

# aes-simple

Simple AES-256-CBC encyption/decryption of target files.

## Installation

```sh
npm i -g @jovian/aes-encrypt
```

## Usage

```sh
aes-enc myfile.txt # outputs myfile.txt.enc
```

```sh
aes-dec myfile.txt.enc # outputs myfile.txt
```