An open API service indexing awesome lists of open source software.

https://github.com/idiocc/koa-session-test

The Test For Koa-Session MaxAge.
https://github.com/idiocc/koa-session-test

Last synced: about 1 year ago
JSON representation

The Test For Koa-Session MaxAge.

Awesome Lists containing this project

README

          

# @idio/koa-session-test

[![npm version](https://badge.fury.io/js/@idio/koa-session-test.svg)](https://npmjs.org/package/@idio/koa-session-test)

`@idio/koa-session-test` is The Test For Koa-Session MaxAge.

```sh
yarn add @idio/koa-session-test
```

## Table Of Contents

- [Table Of Contents](#table-of-contents)
- [API](#api)
- [`koaSessionTest(arg1: string, arg2?: boolean)`](#mynewpackagearg1-stringarg2-boolean-void)
* [`_@idio/koa-session-test.Config`](#type-_@idio/koa-session-testconfig)
- [Copyright](#copyright)

## API

The package is available by importing its default function:

```js
import koaSessionTest from '@idio/koa-session-test'
```

## `koaSessionTest(`
  `arg1: string,`
  `arg2?: boolean,`
`): void`

Call this function to get the result you want.

__`_@idio/koa-session-test.Config`__: Options for the program.

| Name | Type | Description | Default |
| --------- | ---------------- | ----------------- | ------- |
| shouldRun | boolean | A boolean option. | `true` |
| __text*__ | string | A text to return. | - |

```js
/* alanode example/ */
import koaSessionTest from '@idio/koa-session-test'

(async () => {
const res = await koaSessionTest({
text: 'example',
})
console.log(res)
})()
```
```
example
```

## Copyright

(c) [Idio][1] 2019

[1]: https://idio.cc