0.1.0 • Published 2 years ago

ac-json-splitter v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

AC JSON Splitter

Splits a given JSON file into chunks based on size parameter (default 256kb). Splitting is done "property safe".

example workflow

Usage

const acjsplit = require('./index')

let json = {
  number: 1,
  test: 'This is a text',
  thai: 'นี่เป็นข้อความภาษาไทยที่มีอักขระ UTF-8 จำนวนมาก'
}
acjsplit.split(json, { size: 48})

// Result
[
  { number: 1, test: 'This is a text' },
  { thai: 'นี่เป็นข้อความภาษาไทยที่มีอักขระ UTF-8 จำนวนมาก' }
]

Links

License

MIT License Copyright © 2009-present, AdmiralCloud AG