@nitrogenbuilder/client

0.2.2 • Public • Published

@nitrogenbuilder/client

This package provides the nitrogen-client.js script to be loaded on your client-side web pages. You should only load this script if the nitrogen-builder=true query parameter is present in the URL. This script will load the Nitrogen Builder client-side code and connect to the Nitrogen Builder server.

Installation

npm install @nitrogenbuilder/client

Vanilla JS Example

if (window.location.search.includes('nitrogen-builder=true')) {
	const script = document.createElement('script');
	script.src =
		'/path/to/node_modules/@nitrogenbuilder/client/nitrogen-client.js';
	script.async = true;
	document.head.appendChild(script);
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    66
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    66
  • 0.2.1
    4
  • 0.2.0
    2
  • 0.1.0
    2

Package Sidebar

Install

npm i @nitrogenbuilder/client

Weekly Downloads

73

Version

0.2.2

License

MIT

Unpacked Size

10.4 kB

Total Files

4

Last publish

Collaborators

  • ismith