![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@ne1410s/demo
Advanced tools
A custom element for demonstration purposes and to serve as a project template.
<ne14-demo-tooltip reveal="Hey!">
<p>Hello world</p>
</ne14-demo-tooltip>
<script src="PATH_TO_UMD_SCRIPT"></script>
<ne14-demo-tooltip corner="3" reveal="Definition here"
>YO' STUFF<ne14-demo-tooltip></ne14-demo-tooltip
></ne14-demo-tooltip>
const tooltip = document.querySelector('ne14-demo-tooltip');
tooltip.addEventListener('...', () => {
console.log('Event fired!');
});
set
corner (number): Sets the attribute with the corresponding valueset
reveal (string): Sets the attribute with the corresponding valueSome degree of custom styling can be provided, by way of css variables:
ne14-demo-tooltip {
--src-border: 1px solid green;
--reveal-trg-bg: rebeccapurple;
}
--src-border-radius
Source item border radius. Defaults to: 3px
--src-border
Source item border. Defaults to: 1px solid black
--src-bg
Source item background. Defaults to: inherit
--src-fg
Source item foreground. Defaults to: inherit
--trg-border-radius
Target item border radius. Defaults to: 3px
--reveal-src-border
Source item border (in reveal mode). Defaults to: --src-border
--reveal-src-bg
Source item background (in reveal mode). Defaults to: inherit
--reveal-src-fg
Source item foreground (in reveal mode). Defaults to: inherit
--reveal-trg-border
Target item border (in reveal mode). Defaults to: 1px solid black
--reveal-trg-bg
Target item background (in reveal mode). Defaults to: white
--reveal-trg-fg
Target item foreground (in reveal mode). Defaults to: inherit
FAQs
A custom element for demonstration purposes and to serve as a project template.
The npm package @ne1410s/demo receives a total of 204 weekly downloads. As such, @ne1410s/demo popularity was classified as not popular.
We found that @ne1410s/demo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.