Skip to content

scalajs-io/tough-cookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToughCookie API for Scala.js

tough-cookie - RFC6265 Cookies and Cookie Jar for node.js

Description

RFC6265 Cookies and Cookie Jar for node.js

Build Dependencies

Build/publish the SDK locally

 $ sbt clean publish-local

Running the tests

Before running the tests the first time, you must ensure the npm packages are installed:

$ npm install

Then you can run the tests:

$ sbt test

Examples

import io.scalajs.JSON
import io.scalajs.npm.toughcookie._

val cookie = Cookie.parse("key1=value1")
println(s"cookie: ${JSON.stringify(cookie)}")
//=> cookie: {"key":"key1","value":"value1","creation":"2017-02-08T06:25:57.717Z"} 

Artifacts and Resolvers

To add the ToughCookie binding to your project, add the following to your build.sbt:

libraryDependencies += "io.scalajs.npm" %%% "tough-cookie" % "0.5.0"

Optionally, you may add the Sonatype Repository resolver:

resolvers += Resolver.sonatypeRepo("releases") 

Releases

No releases published

Packages

No packages published

Languages