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.
- Host: GitHub
- URL: https://github.com/idiocc/koa-session-test
- Owner: idiocc
- License: mit
- Created: 2019-06-29T01:01:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-29T01:01:13.000Z (almost 7 years ago)
- Last Synced: 2025-02-15T07:49:00.484Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://idio.cc
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @idio/koa-session-test
[](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