browser-cookies
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "browser-cookies", | ||
"description": "Tiny cookies library for the browser", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"main": "browser-cookies.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -63,3 +63,5 @@ <img width="425" height="200" src="https://raw.githubusercontent.com/voltace/browser-cookies/master/browser-cookies.png"/> | ||
<hr/> | ||
<a name="cookies-set" href="#cookies-set">**cookies.set(** `name`, `value` [, `options`] **)**</a> | ||
<a name="cookies-set"></a> | ||
[**cookies.set(** `name`, `value` [, `options`] **)**](#cookies-set) | ||
<br/> | ||
Method to save a cookie. | ||
@@ -71,7 +73,9 @@ | ||
| **`value`** | string | the value to save. | ||
| **`options`** | object | may contain any of the properties specified in [options](#options) below. If an option is not specified, the value configured in [`cookies.defaults`](#cookies-defaults) will be used. | ||
| **`options`** | object | may contain any of the properties specified in [options](#options) below. If an option is not specified, the value configured in [cookies.defaults](#cookies-defaults) will be used. | ||
<hr/> | ||
<a name="cookies-get" href="#cookies-get">**cookies.get(** `name` **)**</a> | ||
<a name="cookies-get"></a> | ||
[**cookies.get(** `name` **)**](#cookies-get) | ||
<br/> | ||
Method that returns a cookie value, or **null** if the cookie is not found. | ||
@@ -85,3 +89,5 @@ | ||
<hr/> | ||
<a name="cookies-erase" href="#cookies-erase">**cookies.erase(** `name` [, `options`] **)**</a> | ||
<a name="cookies-erase"></a> | ||
[**cookies.erase(** `name` [, `options`] **)**](#cookies-erase) | ||
<br/> | ||
Method to remove a cookie. | ||
@@ -92,7 +98,9 @@ | ||
| **`name`** | string | the name of the cookie to remove. | ||
| **`options`** | object | may contain the `domain` and `path` properties specified in [options](#options) below. If an option is not specified, the value configured in [`cookies.defaults`](#cookies-defaults) will be used. | ||
| **`options`** | object | may contain the `domain` and `path` properties specified in [options](#options) below. If an option is not specified, the value configured in [cookies.defaults](#cookies-defaults) will be used. | ||
<hr/> | ||
<a name="cookies-defaults" href="#cookies-defaults">**cookies.defaults**</a> | ||
<a name="cookies-defaults"></a> | ||
[**cookies.defaults**](#cookies-defaults) | ||
<br/> | ||
This object may be used to change the default value of each option specified in [options](#options) below. | ||
@@ -102,3 +110,3 @@ | ||
### Options | ||
Options may be set globally using [`cookies.defaults`](#cookies-defaults) or passed as function argument, see the [Examples](#examples) section below and the [API](#api) reference above for details. | ||
Options may be set globally using [cookies.defaults](#cookies-defaults) or passed as function argument, see the [Examples](#examples) section below and the [API](#api) reference above for details. | ||
@@ -182,3 +190,2 @@ | Name | Type | Default | Description | ||
<!--- References --> | ||
[ref-cookie-domain]: https://stackoverflow.com/questions/1062963/how-do-browser-cookie-domains-work | ||
@@ -193,3 +200,2 @@ [ref-date-parse]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse | ||
<!--- Shields --> | ||
[npm-url]: https://npmjs.org/package/browser-cookies | ||
@@ -196,0 +202,0 @@ [npm-version-image]: https://img.shields.io/npm/v/browser-cookies.svg |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
209
14766