2.0.0 • Published 1 year ago

@front-app-react/constants v2.0.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year 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

2.0.0

1 year ago

1.1.1

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.5

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