umd-tough-cookie

tough-cookie as UMD module for usage in browsers

Usage no npm install needed!

<script type="module">
  import umdToughCookie from 'https://cdn.skypack.dev/umd-tough-cookie';
</script>

README

UMD version of salesforce/tough-cookie

npm version Build Status

This is a UMD (Universal module definition) version of the popular CommonJS module "tough-cookie". It's meant to be used in the browser. If you need to run this in node.js environment, it's recommended using the original CommonJS version.

Installation

with npm, run: npm install umd-tough-cookie

Loading the module

There are two options for loading this module. Either you can use a AMD module loader (e.g. require.js), or you can just load it with a script tag. If you load it via script tag, then a global object "ToughCookie" will be exported.

Usage

See here for API documentation and how to use this module.