1.1.4 • Published 8 months ago
global-file v1.1.4
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