1.1.9 • Published 2 years ago

jml-format v1.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Author(s)/Creator(s)

jml

JML is a custom file format like json, bson or yaml.

To get started :

  • 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!

Example code for .jml file :

spacing is avaliable | this is spacing
$ymbols? | $ymb0ls & numb3r$ 4r3 w0rk1ng

Example code in typescript :

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?"));
})();

Output:

  • this is spacing
  • $ymb0ls & numb3r$ 4r3 w0rk1ng

Pros & cons :

jml works with :

  • spacing
  • numbers
  • symbols

jml can not work with :

  • 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)

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

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