1.0.9 • Published 1 year ago

roland-code-npm v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

roland-code-npm

  • Roland's Code snippets for software development

Source code

Node environment

  • Install from the CLI: npm install roland-code-npm
  • Example using CommonJS require to load the module:
const { healthCheck } = require("roland-code-npm");
healthCheck();

Front-end environment

<script type="module">
  import { domUtils } from 'https://cdn.jsdelivr.net/npm/roland-code-npm@latest/index-client.js';
  const { $, createElem, randomNum } = domUtils;
  const randomImageUrl = () => 'https://source.unsplash.com/random?' + randomNum(1000);
  const img = createElem('img', { src: randomImageUrl() });
  img.addEventListener('click', (e) => {
    e.target.src = randomImageUrl();
  });
  $('.photo').appendChild(img);
</script>
1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago