Skip to content

maniartech/InternetObject-js

 
 

Repository files navigation

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

About

Official JavaScript and TypeScript parser for Internet Object

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •