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

https://github.com/lessp/bs-cookie-session

Reason bindings for (Express) cookie-session
https://github.com/lessp/bs-cookie-session

Last synced: about 1 year ago
JSON representation

Reason bindings for (Express) cookie-session

Awesome Lists containing this project

README

          

# bs-cookie-session

Barebones BuckleScript-bindings for [cookie-session](https://github.com/expressjs/cookie-session) to be used with [bs-express](https://github.com/reasonml-community/bs-express/)

These bindings are currently very barebones, so feel free to contribute!

# Getting started

## Example

```ocaml
open Express;

let app = express();

App.use(
app,
CookieSession.make(
~name="name",
~keys=["key1", "key2"],
~secret="somesecret",
),
);

// etc
```

## Installation

```bash
npm i -S bs-cookie-session
```

## Configuring

Add bs-cookie-session as a dependency to your `bsconfig.json`

```json
"bs-dependencies": [
"bs-express",
// other dependencies
],
```

# License

MIT