maniartech/InternetObject-js


Official JavaScript and TypeScript parser for Internet Object

https://internetobject.org

License: ISC

Language: TypeScript

Keywords: api, http, internet, internet-object, internetobject, json, parser, rest, rest-api, rpc


Internet Object

Build Status

Thin, robust, schema-first yet simple data interchange format for Internet. Best well-planned alternative to JSON!

Internet Object TypeScript/JavaScript Parser

NOT YET READY - This project is under active development! Don't use, not yet ready!

import InternetObject from 'internet-object'

const schema = "name,age"

const o = new InternetObject("Spiderman,25", schema)


// Prints Spiderman
console.log(o.data.name);

// Prints 25
console.log(o.data.age);
import InternetObject from 'internet-object'

const schema = "name,age,address:{street,city,state,zip}"

const o = new InternetObject("Spiderman,25,{Bond Street, New York, NY, 50005}", schema)

// Print o
console.log(o.data);

Outputs following object.

{
  "name": "Spiderman",
  "age": 25,
  "address": {
    "street": "Bond Street",
    "city": "New York",
    "state": "NY",
    "zip": 50005
  }
}

Work in Progress

  • Tokenizer
  • Tree Parser
  • Schema Parser
  • Number
  • Strings
  • Boolean and Nulls
  • DateTime
  • Collections (WIP)
  • Definitions (WIP)
  • Serialization (WIP)
  • Optimization (WIP)
  • Testing (WIP)

Geting Started ( Not Ready):

  1. Fork repository from https://github.com/maniartech/InternetObject-js
  2. Install dependencies npm install or yarn install
  3. Make changes in ./src
  4. Update tests in ./tests/
  5. Run tests, npm test or yarn test
  6. Send pull request(s)

For more information about Internet Object architecture - InternetObject.org

ISC License: © ManiarTechⓇ 2018-2020

Project Statistics

Sourcerank 6
Repository Size 979 KB
Stars 33
Forks 6
Watchers 7
Open issues 5
Dependencies 2,126
Contributors 2
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

M. Aamir Maniar dependabot[bot]

Packages Referencing this Repo

internet-object
A typescript/javascript compiler parser for Internet Object
Latest release 0.1.9 - Updated - 33 stars

Something wrong with this page? Make a suggestion

Last synced: 2020-05-25 17:26:49 UTC

Login to resync this repository