Socket
Book a DemoInstallSign in
Socket

@chapeaux/cpx-cookie

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chapeaux/cpx-cookie

Chapeaux Cookie Component

0.11.0
latest
Source
npmnpm
Version published
Weekly downloads
91
-68.94%
Maintainers
2
Weekly downloads
 
Created
Source

PURPOSE

The cpx-cookie component is meant to be a declarative interface for getting and setting browser cookies and parsing them in various ways. JSON and JWT parsing is built in.

Installation

  • npm install @chapeaux/cpx-cookie or consume from a CDN via @chapeaux/cpx-cookie
  • include the cpx-cookie.js file on a page prior to any event tracking that should occur

Usage

  • <script type="module" src="path/to/@chapeaux/cpx-cookie/cpx-cookie.js"></script>
  • import { CPXWebSocket } from "path/to/@chapeaux/cpx-cookie/cpx-cookie.js";
  •  <cpx-cookie action="set" key="user_data" parse="json" value="{name:'shadowman',account_id:'rh1234'}"></cpx-cookie>
     <cpx-cookie action="set" key="username" value="shadowman"></cpx-cookie>
     <cpx-cookie action="get" key="rhc_sso" parse="jwt" emit="token-ready"></cpx-cookie>
    

Testing

  • deno test runner and assertions: https://deno.land/manual/testing/assertions

Contributing

  • Provide feedback on usage
  • Submit an issue or PR
  • Feature requests flow through CPCORE Jira Project
    • Use "chapeaux" component
    • Priority will be reviewed against all other requests
    • No timeframe promised upon submission

To-Do

  • Nothing at this time

Keywords

web

FAQs

Package last updated on 28 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.