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
- Host: GitHub
- URL: https://github.com/lessp/bs-cookie-session
- Owner: lessp
- License: mit
- Created: 2019-01-23T10:59:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T11:36:14.000Z (over 7 years ago)
- Last Synced: 2025-03-20T00:37:18.465Z (about 1 year ago)
- Language: OCaml
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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