internet-object

A typescript/javascript compiler parser for Internet Object


Keywords
Internet Object, InternetObject, IO, REST, API, JSON, http, internet, internet-object, parser, rest-api, rpc
License
ISC
Install
npm install internet-object@0.1.9

Documentation

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