@msquared/pixel-streaming-client
Version:
Browser client for viewing pixel-streamed content from MSquared events
75 lines (51 loc) • 1.74 kB
Markdown
# MSquared Pixel Streaming Client
[](https://www.npmjs.com/package/@msquared/pixel-streaming-client)
[](https://github.com/msquared-io/pixel-streaming-client/actions/workflows/main.yaml)
[](https://opensource.org/licenses/MIT)
[](https://www.typescriptlang.org/)
Browser client for viewing pixel-streamed content from MSquared events.
## Usage
For detailed documentation please visit our [docs site](https://docs.msquared.io/apis-and-tooling/frontend-sdks/pixel-streaming).
## Features
- 🔒 Type-safe with full TypeScript support
- 📦 Multiple distribution formats (ESM, CJS, UMD)
- 🛠️ Easy integration with modern build tools
## Build
```bash
npm run build
```
This will create:
- CommonJS (CJS) build
- ES Modules (ESM) build
- Browser-ready bundle
- TypeScript declaration files
## Development
```bash
# Install dependencies
npm install
# Install git hooks
npm run hook
# Run tests
npm test
# Type checking
npm run ts:type-check
# Linting
npm run ts:lint
npm run ts:lint:fix
# Format code
npm run ts:fmt
npm run ts:fmt:fix
# Lint and format code
npm run ts:check
npm run ts:check:fix
# All validation checks
npm run ts:validate
```
## Release
The GitHub Actions workflow will automatically publish the package to npm when a new release is created.
```bash
npm version <patch|minor|major>
git push --atomic origin main <version>
```
## License
MIT © [MSquared](https://msquared.io)