1.0.9 • Published 2 years ago

roland-code-npm v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago