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

https://github.com/idiocc/closure

Koa With Google Closure Compiler.
https://github.com/idiocc/closure

Last synced: about 1 year ago
JSON representation

Koa With Google Closure Compiler.

Awesome Lists containing this project

README

          

# @idio/closure

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

`@idio/closure` is Koa With Google Closure Compiler.

```sh
yarn add -E @idio/closure
```

## Table Of Contents

- [Table Of Contents](#table-of-contents)
- [API](#api)
- [`closure(arg1: string, arg2?: boolean)`](#mynewpackagearg1-stringarg2-boolean-void)
* [`Config`](#type-config)
- [Copyright](#copyright)

## API

The package is available by importing its default function:

```js
import closure from '@idio/closure'
```

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

Call this function to get the result you want.

__`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 closure from '@idio/closure'

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

## Copyright

(c) [Idio][1] 2019

[1]: https://idio.cc