mmm-cookies

A JavaScript module to set and get cookies in the browser.

Usage no npm install needed!

<script type="module">
  import mmmCookies from 'https://cdn.skypack.dev/mmm-cookies';
</script>

README

Mmm Cookies

npm version Build Status

A JavaScript module to set and get cookies in the browser.

Mmm cookies logo

Install

npm install mmm-cookies --save-dev

Use

var cookie = require('mmm-cookies');

// set a cookie
cookie.set('cookieName', 'cookieValue');

// get a cookie value
cookie.get('cookieName');

Release History

  • 1.0.2: Add domain support.
  • 1.0.1: Update documentation.
  • 1.0.0: Initial release.

Contributing

  1. Fork it
  2. Run npm install
  3. Run Grunt watch grunt watch
  4. Create your feature branch (git checkout -b my-new-feature)
  5. Commit your changes (git commit -am "Add some feature")
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

License

MIT © Ryan Burgess