jsmp-infra-package-name

Good package if you have a lot of free time

Usage no npm install needed!

<script type="module">
  import jsmpInfraPackageName from 'https://cdn.skypack.dev/jsmp-infra-package-name';
</script>

README

jsmp-infra-package-name

Allow you to update your strings and arrays

API

Array

const { arrayMethods } = require('jsmp-infra-package-name');

arrayMethods(array, type);

Where

  • array is your array. Typeof should be 'Array'.
  • type is event type

Type of event can be:

  1. 'increase' - Should update array with string.
  2. 'reduce' - Should reduce array.
  3. 'default' - Should return default message.

String

const { stringMethods } = require('jsmp-infra-package-name');

stringMethods(string, type);

Where

  • string is your string. Typeof should be 'String'.
  • type is event type

Type of event can be:

  1. 'increase' - Should concat your string with another string.
  2. 'reduce' - Should reduce string on one character.
  3. 'uppercase' - Should transform string to uppercase.
  4. 'lowercase' - Should transform string to lowercase.
  5. 'default' - Should return default message.