Syntaxe for JavaScript/TypeScript
Syntaxe is a data query library inspired by graphql.
Syntaxe, with the help of a schema and a variety of operators, can be used to perform any number of query operations on most types of data e.g. String, Object or Array.
npm install syntaxe
import Syntaxe from "syntaxe";
const sx = new Syntaxe({
data: [1,2,3],
schema: `[size]`
});
const result = await sx.query();
// Result: 3
// OR
sx.query().then((result) => {});
// Result: 3
const Syntaxe = require("syntaxe");
const sx = new Syntaxe({
data: [1,2,3],
schema: `[size]`
});
sx.query().then((result) => {});
// Result: 3
If you find any bugs or inconsistency, please submit an issue here in GitHub.
If you have any issues using the library, please contact me by email lolu.sholar@gmail.com with the subject 'Problem Using Syntaxe'.
You are welcome to contribute or participate in making the library better.
NOTE: Development of this library in various technologies, including PHP, C#, Java, Python, and others, is currently underway, with support for both standalone and REST API usage.