component-cookie

WebJar for component-cookie

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

component-cookie
Last Version

Last Version

1.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

component-cookie
WebJar for component-cookie
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/component/cookie

Download component-cookie

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/component-cookie/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>component-cookie</artifactId>
    <version>1.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/component-cookie/
implementation 'org.webjars.npm:component-cookie:1.1.4'
// https://jarcasting.com/artifacts/org.webjars.npm/component-cookie/
implementation ("org.webjars.npm:component-cookie:1.1.4")
'org.webjars.npm:component-cookie:jar:1.1.4'
<dependency org="org.webjars.npm" name="component-cookie" rev="1.1.4">
  <artifact name="component-cookie" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='component-cookie', version='1.1.4')
)
libraryDependencies += "org.webjars.npm" % "component-cookie" % "1.1.4"
[org.webjars.npm/component-cookie "1.1.4"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : debug jar [2.2.0]

Project Modules

There are no modules declared in this project.

cookie

Cookie component.

Installation

$ component install component/cookie

Example

// set
cookie('name', 'tobi')
cookie('name', 'tobi', { path: '/' })
cookie('name', 'tobi', { maxage: 60000 }) // in milliseconds
cookie('species', 'ferret')

// get
var name = cookie('name')
// => "tobi"

var cookies = cookie()
// => { name: "tobi", species: "ferret" }

// clear
cookie('name', null)

License

MIT

org.webjars.npm

Components

modular components for component

Versions

Version
1.1.4