1.1.4 • Published 8 months ago

global-file v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months 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

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago