1.1.4 • Published 2 years ago

global-file v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Import global

global-file is a react library made to save your time without a lot of importing statements

Install

First of all run:

yarn add global-file

# OR

npm i global-file

And in everyFile type this

const _g = require("global-file").config({
  /* config */
});

// OR

import config from "global-file";
const _g = config({
  /* config */
});

And you can pass the config data:

const config = {
  fileName: string, // Default: ".global"
  filePath: string, // Default: The root of the running CLI
  rootPath: string, // Default: "src"
};

Dot Global syntax

The .global file is written with this way:

theName=SomeValue
theNameOne=SomeValueOne;
theNameTwo=SomeValueTwo

Notice how the semicolon is written

Copyrightes Osama Mohammed

- Codeleek Company

1.1.4

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago