Catalog npm
Back to packageRELEASE DETAILS

0.0.9

npm

@!!!!!/elemental

Control the elements using JS

domelementaljsxtemplate
Published5 Dec 2021
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

Try this library in the Browser Console on Deno.land!

For VS Code use this extension to get syntax highlighting.

var { html } = await import("https://deno.land/x/elementalist@0.5.39/main/deno.js?code")

// create a custom component
const myAsyncCustomComponent = async ({ style, children, ...props }) => {
    // load a big'ole depenency like d3
    const d3 = await import('https://cdn.skypack.dev/d3')
    return html`<div style=${style}>
        Do you even Async?
        Keys of the d3 library: ${JSON.stringify(Object.keys(d3))}
    </div>`
}

// add it to the local scope
html = html.extend({myAsyncCustomComponent})

// change some elements
document.body = html`<body style="padding:1rem;">
    Hello World (I render Immediately)
    <br>
    <myAsyncCustomComponent style='background: darkgray; color: white; padding: 1rem; border-radius: 1rem; margin: 0.3rem;' />
    <br>
    this ^ takes a second to render cause it has a massive async depenency
</body>`

You can also use it with JSX:

/** @jsx html */
var { html } = await import("https://deno.land/x/elementalist@0.5.34/main/deno.js?code")

// create a custom component
const myAsyncCustomComponent = async ({ style, children, ...props }) => {
    // load a big'ole depenency like d3
    const d3 = await import('https://cdn.skypack.dev/d3')
    return <div style={style}>
        Do you even Async?
        Keys of the d3 library: {JSON.stringify(Object.keys(d3))}
    </div>
}

// change some elements
document.body = <body style="padding:1rem;">
    Hello World (I render Immediately)
    <br>
    <myAsyncCustomComponent style='background: darkgray; color: white; padding: 1rem; border-radius: 1rem; margin: 0.3rem;' />
    <br>
    this ^ takes a second to render cause it has a massive async depenency
</body>

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
xhtm
Environment
{
  "local_name": "xhtm",
  "alias": false,
  "peer_metadata": null
}
^1.5.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "cfe678b2fda0bc93addab40c1ea0d9c3b183b813",
  "tarball": "https://registry.npmjs.org/@!!!!!/elemental/-/elemental-0.0.9.tgz",
  "fileCount": 6,
  "integrity": "sha512-wEWrMxasyjVUuoRMvg0DKYYUfujka+RoPGMxpQTEx2iuFrXRX5nRWAheLYoSUJRKpgKXTfB5oX3OLA2Kblf8Cg==",
  "signatures": [
    {
      "sig": "MEYCIQDKfBuk+IJrLsw1uvQu66DbkId0g2J+hsO6kKYMa8gdvgIhAJf59xKr4SA3IHqNrbb63bev0lBNUznzAkw1Qu72xSQh",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 29131,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrRX+CRA9TVsSAnZWagAArHUP/jgHsW85a/8uzRAGi5wU\nxS10I52PjspNITZ4RWM6Wy7HvH0ijVQgELwnd8gxl2Xk5gmMnzWzF7KJ6h55\nSCnkmOk95wQoc5LxltYomvhw5YC9xvvX0Nhf9dzamdBuimQdzTaBekRqDPaJ\nVAV4U2e6q7xkflUdpJLMIzppA8CgvuK6Fw7nDHP6SMKbPV6oaxgVUlwX7sjn\n5VrK5Raiv3sqj2HBd2PElWPhNsiHbGmHikEbxirmrGpgpAS1JD/FSvoSrmZL\nM7nDLs2HEHyVMdNe+WlgsHz7rh/emXc1MedIr+rPZeov7QE9MDT2Y+ySj6hq\ntZRrOYe+TZIaTw7GfzZPpDlOvPav9loYbPhxcSC1zcNKtpMsQY6myWsJ3uuq\njHlR/yIpAlHbC1RfQ0umiqQh+BHxH51XZnyBcQ06Bb26vn9VPbEhzFzRnb7P\nemZFDvjIeK+ONnmmAvFgTNZ7jnhnXj0cIezJFBD2tjhTYuMKdSOFdi+eYbhR\nANtpoXgrRyyZeJU4Zl6BZPygZYdHS9VGX2HTyKwh/XG0fhuU232N63WJHCm+\n48ot5rW9/DVlJmnUmwEwgsIS1UQKpA1D0ehhvVbPJMNcvQcY6KVWmSKciTMP\nxylrOllwh1VB+PpWye4uRz1QHLe2fpRD7f4E3G6fchQJaCXWF2vN/22uzscq\nmU6r\r\n=TECe\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
jeff-hykin/elemental

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:1ef9ea2162bfda0eb6fe60f43ba5f212853352c05782e45e0079bb0c852f55a5

Other collected versions

0.5.404 Aug0.5.394 Aug0.0.137 Apr0.0.125 Dec0.0.115 Dec0.0.105 DecView all collected versions →