
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ison-parser
Advanced tools
ISON (Interchange Simple Object Notation) - A token-efficient data format for AI/LLM workflows
ISON (Interchange Simple Object Notation) - A token-efficient data format optimized for AI/LLM workflows.
:ID syntax)npm install ison-parser
Or via CDN:
<script src="https://unpkg.com/ison-parser/dist/ison-parser.js"></script>
const ISON = require('ison-parser');
// Parse ISON
const isonText = `
table.users
id name email
1 Alice alice@example.com
2 Bob bob@example.com
`;
const doc = ISON.loads(isonText);
console.log(doc.blocks[0].rows[0].name); // "Alice"
// Convert to JSON
const jsonData = doc.toDict();
import ISON from 'ison-parser';
const doc = ISON.loads(isonText);
<script src="https://unpkg.com/ison-parser/dist/ison-parser.js"></script>
<script>
const doc = ISON.loads(isonText);
console.log(doc.toDict());
</script>
ISONL is perfect for fine-tuning datasets, event streams, and logs:
const ISON = require('ison-parser');
// Parse ISONL
const isonlText = `table.examples|instruction response|"Summarize this" "Brief summary..."
table.examples|instruction response|"Translate to Spanish" "Hola mundo"`;
const doc = ISON.loadsISONL(isonlText);
// Stream records
const lines = isonlText.split('\n');
for (const record of ISON.isonlStream(lines)) {
console.log(record.values);
}
// ISON to ISONL
const isonl = ISON.isonToISONL(isonText);
// ISONL to ISON
const ison = ISON.isonlToISON(isonlText);
// JSON to ISON
const isonFromJson = ISON.jsonToISON(jsonObject);
// ISON to JSON
const jsonFromIson = ISON.isonToJSON(isonText);
// Parse ISON string
const doc = ISON.loads(isonText);
// Serialize to ISON
const text = ISON.dumps(doc);
// Convert JSON to ISON
const ison = ISON.jsonToISON(jsonObject);
// Convert ISON to JSON
const json = ISON.isonToJSON(isonText);
// Parse ISONL
const doc = ISON.loadsISONL(isonlText);
// Serialize to ISONL
const isonl = ISON.dumpsISONL(doc);
// Stream ISONL
for (const record of ISON.isonlStream(lines)) {
// process record
}
// Convert between formats
const isonl = ISON.isonToISONL(isonText);
const ison = ISON.isonlToISON(isonlText);
// Document - container for blocks
const doc = new ISON.Document();
doc.blocks.push(block);
// Block - single data block
const block = new ISON.Block('table', 'users', ['id', 'name'], rows);
// Reference - pointer to another record
const ref = new ISON.Reference('123', 'user');
console.log(ref.toISON()); // ":user:123"
// ISONLRecord - single streaming record
const record = new ISON.ISONLRecord('table', 'users', ['id', 'name'], values);
table.users
id name email active
1 Alice alice@example.com true
2 Bob bob@example.com false
object.config
timeout 30
debug true
api_key "sk-xxx"
table.orders
id customer_id total
O1 :C1 99.99
O2 :C2 149.50
Each line is a self-contained record:
kind.name|field1 field2 field3|value1 value2 value3
Example:
table.users|id name email|1 Alice alice@example.com
table.users|id name email|2 Bob bob@example.com
| Records | JSON Tokens | ISON Tokens | Savings |
|---|---|---|---|
| 10 | ~200 | ~60-140 | 30-70% |
| 100 | ~2000 | ~600-1400 | 30-70% |
| 1000 | ~20000 | ~6000-14000 | 30-70% |
TypeScript declarations are included:
import ISON, { Document, Block, Reference } from 'ison-parser';
const doc: Document = ISON.loads(text);
const block: Block = doc.blocks[0];
All tests passing:
Running ISON v1.0 Parser Tests
========================================
[PASS] test_basic_table
[PASS] test_quoted_strings
[PASS] test_escape_sequences
[PASS] test_type_inference
[PASS] test_references
[PASS] test_null_handling
[PASS] test_dot_path_fields
[PASS] test_comments
[PASS] test_multiple_blocks
[PASS] test_serialization_roundtrip
[PASS] test_to_json
[PASS] test_from_dict
[PASS] test_error_handling
[PASS] test_typed_fields
[PASS] test_relationship_references
[PASS] test_summary_rows
[PASS] test_computed_fields
[PASS] test_serialization_with_types
[PASS] test_json_to_ison
[PASS] test_ison_to_json
Running ISONL Tests
--------------------------------------------------
[PASS] test_isonl_basic_parsing
[PASS] test_isonl_type_inference
[PASS] test_isonl_references
[PASS] test_isonl_multiple_blocks
[PASS] test_isonl_comments_and_empty
[PASS] test_isonl_serialization
[PASS] test_isonl_roundtrip
[PASS] test_ison_to_isonl_conversion
[PASS] test_isonl_to_ison_conversion
[PASS] test_isonl_quoted_pipes
[PASS] test_isonl_error_handling
[PASS] test_isonl_fine_tuning_format
[PASS] test_isonl_stream
==================================================
Results: 33 passed, 0 failed
Run tests with:
npm test
MIT License - see LICENSE for details.
FAQs
ISON (Interchange Simple Object Notation) - A token-efficient data format for AI/LLM workflows
The npm package ison-parser receives a total of 16 weekly downloads. As such, ison-parser popularity was classified as not popular.
We found that ison-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.