JML is a custom file format like json, bson or yaml.
- At first, JML works with spaces, symbols & you don't need to put double quotes!
- Aswell as always this is just the beta of jml file format, more updates is comming soon!
spacing is avaliable | this is spacing
$ymbols? | $ymb0ls & numb3r$ 4r3 w0rk1ng
import { initJMLFile, indexJMLFile, getFromJML } from "jml-format";
import path from "path";
const fpath = path.join(__dirname + "/conf.jml");
(async () => {
var s: any;
// 👇 Await here is necessary, Or it wont initialize the JML File,
// 👇 Await is required to skip using "setTimeout()".
await initJMLFile(fpath).then( ( ) => s = indexJMLFile() );
console.log(getFromJML(s.list.items, "spacing is avaliable"));
console.log(getFromJML(s.list.items, "$ymbols?"));
})();
-
this is spacing
-
$ymb0ls & numb3r$ 4r3 w0rk1ng
- spacing
- numbers
- symbols
-
more than space after you finished the field or value, Like :
-
GOOD 👇:
-
this is a test | yep!
-
BAD 👇:
-
this is a test | yep!
-
no ability to put comments (Working on it)