🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

posecode-share

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posecode-share

Encode/decode .posecode documents to URL-safe share tokens — the distribution primitive for Posecode permalinks and embeds.

Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
191
119.54%
Maintainers
1
Weekly downloads
 
Created
Source

posecode-share

Encodes and decodes .posecode documents to URL-safe share tokens: the distribution primitive behind Posecode playground permalinks and embeds. Pure, dependency-free.

Install

npm install posecode-share

Usage

import { buildShareHash, readShareHash } from "posecode-share";

const hash = buildShareHash(myPosecodeSource); // "#doc=…"
const link = `https://posecode.org/play${hash}`;

// On the receiving page:
const source = readShareHash(window.location.hash);

License

Apache-2.0

Keywords

posecode

FAQs

Package last updated on 17 Jul 2026

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