open-index/open-npm huggingface dataset:
npm package: @jsonpath-tools/codemirror-lang-jsonpath
Description: JSONPath (RFC 9535) language support for CodeMirror editor.
Author: Jan Jörka
Latest version: 0.4.4-alpha

# @jsonpath-tools/codemirror-lang-jsonpath

[Documentation](https://janjorka.github.io/jsonpath-tools/documentation/editor/codemirror-extension) | [NPM Package](https://www.npmjs.com/package/@jsonpath-tools/codemirror-lang-jsonpath)

JSONPath ([RFC 9535](https://datatracker.ietf.org/doc/rfc9535/)) language support for CodeMirror editor.
npm package: @jsonpath-tools/jsonpath
Description: JSONPath (RFC 9535) query evaluation, analysis and editor services.
Author: Jan Jörka
Latest version: 0.4.4-alpha

# @jsonpath-tools/jsonpath

[Documentation](https://janjorka.github.io/jsonpath-tools/documentation/core/get-started) | [NPM Package](https://www.npmjs.com/package/@jsonpath-tools/jsonpath)

JSONPath ([RFC 9535](https://datatracker.ietf.org/doc/rfc9535/)) query evaluation, analysis and editor services.
npm package: @jsonpath-tools/jsonpath-editor-react
Description: Advanced JSONPath (RFC 9535) editor for React.
Author: Jan Jörka
Latest version: 0.4.4-alpha

# @jsonpath-tools/jsonpath-editor-react

[Documentation](https://janjorka.github.io/jsonpath-tools/documentation/editor/react-component) | [NPM Package](https://www.npmjs.com/package/@jsonpath-tools/jsonpath-editor-react)

Advanced JSONPath ([RFC 9535](https://datatracker.ietf.org/doc/rfc9535/)) editor for React.
npm package: @jsonql/ast
Description: Generate AST Map using SWC
Author: Joel Chu
Latest version: 0.9.1

# @jsonql/ast

The sole purpose of this module is to generate AST map using [SWC](https://swc.rs) parser;
the map will be use in various modules

---

[JSONQL](https://jsonql.org)

Joel Chu (c) 2022
npm package: @jsonql/errors
Description: Jsonql Errors class
Author: Joel Chu
Latest version: 0.8.0

# @jsonql/errors

**This package was call jsonql-errors and now publish under the @jsonql scope.
The old package offer several different format for use. But now only offer as `.mjs`
Javascript module (because this is not really a standalone package and mainly use for develop other modules)
**
---

This module exports custom Error class for developer to use.
When the server side throw error, the client side will try to throw exactly
the same error and as developer you can clearly understand what is happening.



## Example

```js
// bunch of setup
client.query.getSomething(1)
  .then(result => /* do your thing */)
  .catch(err => {
    if (err instanceof JsonqlValidateError) {
      // update your UI to show the validation error

    } else if (err instanceof Jsonql500Error) {
      // ooops the server is down
    } else {
      // then this will NOT be an error throw from jsonql system
    }
  })
```

## List of Errors

### Server side errors

- Jsonql406Error
- Jsonql500Error
- JsonqlAuthorisationError
- JsonqlContractAuthError
- JsonqlResolverAppError
- JsonqlResolverNotFoundError

### Check Options errors

- JsonqlCheckerError
- JsonqlEnumError
- JsonqlTypeError

### Share errors

- ValidationError
- JsonqlError
- JsonqlServerError

### general error

This is a standalone error type for use in a different type of module.

- GeneralException

## Functions

This package also export several useful functions, and we use this
across multiple jsonql modules.

### getErrorByStatus

Get the error class name by it's status code, use on client side

arguments:
- statusCode {number} the status code
- contract {boolean} if this is from the contract *hack*

returns:
- {string} the name of the error class

### clientErrorsHandler

Check the resolver return result for error, use on client side

arguments:
- result {object} after we call a resolver and check the result if it's contain an error

returns:
- {object} if its passed then just return the result or throw a new error

### finalCatch

Repackage the error throw from the application

arguments:
- e {object} the error we catch

returns:
- throw the correct structure in our own error classes

### getErrorNameByInstance

Compare a list of errors class with the error we catch, then get it's name

arguments:
- errs {array} list of error classes
- e {object} the error object we captured

returns:
- {string} the name of the error class or `unknown` if it's not ours

## CONSTANTS

There are two constants export from this module as well

- `JSONQL_ERRORS_INFO` gives you the version number
- `UNKNOWN_ERROR` this is to use with the `getErrorNameByInstance` when we could not determine what type of error it is.




---

ISC (c) 2019 NEWBRAN LTD / TO1SOURCE.CN
npm package: @jsonql/koa
Description: This is the all in one package to start your jsonql project with Koa, jsonql-koa, jsonql-ws-server and more
Author: Joel Chu
Latest version: 0.9.0

# jsonql Koa server

This is an all in one setup to have your jsonql API server setup in no time.

It includes:

1. Koa
2. bodyparser, cors middleware
3. [jsonql-koa](https://npmjs.com/pacakge/jsonql-koa) middleware
4. OptionalDependencies [jsonql-ws-server](https://npmjs.com/package/jsonql-ws-server)
5. OptionalDependencies jsonql-socketio-server (coming soon)

## Quick start

```js
const jsonqlKoaServer = require('@jsonql/koa')

jsonqlKoaServer({
  autoStart: true,
  port: 3000
})
```

That's it.

## CLI 

You can also use the command line `jsonql-koa-cli`, it's **better** install this globally.

```sh
$ jsonql-koa-cli /path/to/config.json
```

If you don't supply the config file, then it will just all the default options to start the server. 


## Configuration

TBC

---

MIT (c) 2020 [NEWBRAN LTD](https://newbran.ch) / [TO1SOURCE CN](https://to1source.cn)
npm package: @jsonql/validator-core
Description: @jsonql/validator-core provide all core functions for @jsonql/validator and config-validator
Author: to1source
Latest version: 0.12.2

# @jsonql/validator-core

This library provide all the core validation functions for couple other libraries.
Also it has a plugin system, and some commonly use plugins to help with the validation.

## ValidatorPlugins

As of version 0.8.0, we move all the plugins related methods into this module. And this will be able to share between many different
`@jsonql/validator` instance to use, instead of every time we init a `ValidatorFactory` and have to load all the plugins again.

More to come

## About the plugin system

The core library provide function to validate against primitive types and their value.
When we need to test the value in a more specific way, we can use the plugin system.
Also this plugin system allow developer to create their own plugin to suit their specific need.

A plugin file looks like this:

```ts
// test for integer
const name = "int"

function main(value: number): boolean {
  return Number.isInteger(value)
}

export default {
  name,
  main,
}
```

If you require additional parameter:

```ts
// example from our built-in plugin between

// between
import moreThan from './more-than'
import lessThan from './less-than'

const name = 'between'

function main(
  max: number,
  min: number,
  value: number | string
): boolean {

  return lessThan.main(max, value) && moreThan.main(min, value)
}

// Then when we register it, we know what `params` we should expect
export default {
  main,
  name,
  params: ['max', 'min']
}

```

The `value` that will get validate **MUST** be the last argument. Because we will curry the main method before insert into our validation queue system.

## Built-in plugins

Here is list of available built-in plugins:

### between

```ts
{ plugin: 'between', max: 100, min: 1}
```

Check a number or string (length) is `< max` and `> min`

### email

```ts
{ plugin: 'email'}
```

Check if the input is email address

### float

```ts
{ plugin: 'float' }
```

Check if the value is a float number

### int

```ts
{ plugin: 'int' }
```

Check if the value is an signed integer

### lessThanEqual

```ts
{ plugin: 'lessThanEqual', num: 100}
```

Check if a number or string (length) is `=< num`

### lessThan

```ts
{ plugin: 'lessThan', num: 100}
```

Check if a number or string (length) is `< num`

### moreThanEqual

```ts
{ plugin: 'moreThanEqual', num: 100}
```

Check if a number or string (length) is `>= num`

### moreThan

```ts
{ plugin: 'moreThan', num: 100}
```

Check if a number of string (length) is `> num`

### uint

```ts
{ plugin: 'uint' }
```

Check if a number is a unsigned integer (>=0)

### within

```ts
{ plugin: 'within', max: 100, min: 1}
```

Check if a number or string (length) is `<= max` and `>= min`

---

[JSONQL](https://jsonql.org)
npm package: @jsonql/validators
Description: @velocejs/validators based off @jsonql/validator and @jsonql/validator-core
Author: to1source
Latest version: 0.10.3

# @jsonql/validators

This validators is extended from [@jsonql/validator]() with additional features.

Instead of one validator per method, this will take a whole list of methods (usually a class)
and generate all the validator for each method

## Documentation

Coming soon

---

TO1SOURCE
npm package: @jsonresume/cli
Description: The JSON Resume command line interface
Latest version: 1.2.8

# Fork of [resume-cli](https://github.com/jsonresume/resume-cli)
# Updated dependencies

# resume-cli

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jsonresume/public?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/jsonresume/resume-cli.svg?branch=master)](https://travis-ci.org/jsonresume/resume-cli) [![Dependency Status](https://david-dm.org/jsonresume/resume-cli.svg)](https://david-dm.org/jsonresume/resume-cli) [![devDependency Status](https://david-dm.org/jsonresume/resume-cli/dev-status.svg)](https://david-dm.org/jsonresume/resume-cli#info=devDependencies)  [![](https://badge.fury.io/js/resume-cli.svg)](https://www.npmjs.org/package/resume-cli)

This is the command line tool for [JSON Resume](https://jsonresume.org), the open source initiative to create a JSON-based standard for resumes.

[Read more...](https://jsonresume.org/schema/)


# Getting Started

Install the command-line tool:

```
npm install -g resume-cli
```


# Usage

## `resume --help`

Show a list of options and commands for the <abbr title="Command Line Interface">CLI</abbr>.


## `resume init`

Creates a new `resume.json` file in your current working directory.

Complete the `resume.json` with your text editor. Be sure to follow the schema 
(available at http://jsonresume.org).


## `resume test`

Validates your `resume.json` against our schema tests to ensure it complies with 
the standard. Tries to identify where any errors may be occurring.


## `resume export [fileName]`

Exports your resume locally in a stylized HTML, Markdown, or PDF format.

A list of available themes can be found here: http://jsonresume.org/themes/

Please npm install the theme you wish to use locally before attempting to export it.

Options:
  - `--format <file type>` Example: `--format pdf`
  - `--theme <name>` Example: `--theme flat`  

## `resume serve`

Starts a web server that serves your local `resume.json`.  

Options: 
  - `--port <port>`
  - `--theme <name>`

If no theme is specified, it will look for the file `index.js` and call 
`render()`. This is useful when developing themes.



# License

Available under [the MIT license](http://mths.be/mit).