# mgn-cookie

Latest version **0.0.0** (published 2018-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install mgn-cookie
pnpm add mgn-cookie
yarn add mgn-cookie
bun add mgn-cookie
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2018-08-24 |
| First published | 2018-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dentsu Isobar |
| Maintainers | frontend-isobar-jp |
| Keywords | Cookie, js, library, ECMA script, not jQuery |

## Links

- npm: https://www.npmjs.com/package/mgn-cookie
- npm.io page: https://npm.io/package/mgn-cookie

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.0 (latest) — 2018-08-24

## README

# mgn-cookie ( Don't Need jQuery )


Set/Get Cookie.

___

# Install

```
npm i mgn-cookie -S
```

## Or Download raw data
[↓ download "mgn-cookie.js"](https://raw.githubusercontent.com/frontend-isobar-jp/mgn-cookie/master/src/mgn-cookie.js)

___

# Import

```
import mgnCookie from 'mgn-cookie';
```

___

# Constructor

```
new mgnCookie();
```

___

# Method

|Method|Argument|Descroption|
|:-------|:--------|:----------|
|SetCookie(<br>cookieName,<br>value,<br>expiredays<br>)|cookieName* [String] : Specify cookie name.<br>value* : Specify value.(ex: true, 0, "check", etc.)<br>expiredays [Number] : Specify effective days.<br><br>*:Required|Set Cookie.|
|GetCookie(<br>cookieName<br>)|Specify name of the cookie you want to get.|Get Cookie.|
___

# Sample code

```
let Cookie = new mgnCookie();

if( !Cookie.GetCookie( "browsed" ) ) {
    alert("はじめまして");
}

Cookie.SetCookie( "browsed", true );
```

---
_Source: https://npm.io/package/mgn-cookie · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
