1.1.2 • Published 11 months ago

@front-app-react/constants v1.1.2

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

Js Constants

package constant bindings for using applications

Demo

demo for using demo-front-app-react

Installing

npm i @front-app-react/constants

Packages

List of packages used:

  • stringArgsFunc - Places values with variables in a text string
  • objectByString - Get the value object with the name point

stringArgsFunc

Description

Places values with variables in a text string in the text string :

  • Any value before return is known as a variable
  • Any value after the last comma before return is known as JavaScript code

Usage

dev
const str = "count,return 'The number of : ' + count";
const value = stringArgsFunc(str,["41"]);
result
const value = "The number of : 41";

Arguments

arg1type string , text
arg1type string array

Value

The output value is string

objectByString

Description

Get the value object with the name point

Usage

dev
const object = {
    signIn : {
        username : "user username",
        password : "user password",
    }
};
const value = objectByString(object,"signIn.username");
result
const value = "user username";

Arguments

arg1type object
arg2type string, endpoint name obj with dot

Value

The output value is anything

1.1.1

11 months ago

1.1.2

11 months ago

1.1.0

11 months ago

1.0.5

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

1 year ago

1.0.0

1 year ago