2.0.0 • Published 1 year ago

jsmp-infra-str-arr-tool v2.0.0

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

jsmp-infra-str-arr-tool

  • Attention! jsmp-infra-str-arr-tool is a homework project with no useful functional. Now you are informed :-)

    jsmp-infra-str-arr-tool helps develop node.js based applications by simplifying prefixing string values and arrays elements. Prefixed strings are changed to camelCase where "-" occurs.

jsmp-infra-str-arr-tool does not require any additional changes to your code or method of development.

jsmp-infra-str-arr-tool is a tool that is compatible with ECMAScript 5, so you don't need to use transpilers to use it in legacy projects.

Installation

The recommended way to install the tool is using npm. You can install jsmp-infra-str-arr-tool as a development dependency:

npm install --save-dev jsmp-infra-str-arr-tool

After that you can import string and array prefixers at every part of your code.

Usage

Import all the functions from str-arr-prefixer:

const prefixers = require('str-arr-prefixer');

and use them:

const coreVariable = prefixers.prefixString("options", "core");
const coreItems = prefixers.prefixArray(externalArr, "pre", 2);

Also, you can import only the functions you need

const prefixString = require('str-arr-prefixer/prefixString');

const coreItems = prefixString("options", "core");

Support

  • Tested in
  • Chrome 74-75,
  • Firefox 66-67,
  • IE 11,
  • Edge 18,
  • Safari 11-12,
  • Node.js 8-12.

Keywords

Array, String, camelCase, prefix.

2.0.0

1 year ago

1.0.0

1 year ago