GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - WebReflection/packatoon: Pack JSON collections as TOON like format

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
test.js
test.js
 
 

Repository files navigation

packatoon

Coverage Status

Social Media Photo by Agenlaku Indonesia on Unsplash

16 years ago I wrote json.hpack for PHP, JS and C#

14 years ago I re-wrote JSONH for Python, PHP and JS.

A few days ago TOON non-standard format came out.

packatoon module allows anyone to "pack" and "unpack" homogenous collections which is pretty much what any .csv file has done since about forever, except it remains JSON compatible like all previous work did before TOON came out.

As summary, this module simply uses modern JS to accomplish what TOON or JSONH before did without pretending to be, or do, anything else.

example

import { pack, unpack } from 'packatoon';

const collection = [
  { a: 1, b: 2 },
  { a: 3, b: 4 },
];

const packed = pack(collection);

// [2, 'a', 'b', 1, 2, 3, 4]

unpack(packed);
// [{a:1,b:2},{a:3,b:4}]

That's it.

About

Pack JSON collections as TOON like format

Resources

Readme
MIT license
Activity

Stars

12 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.