Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.
githuboctoPublic archive

About

A collection of postprocessing utilities for flat

Topics

Resources

Stars

58 stars

Watchers

1 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

flat-postprocessing

A collection of postprocessing examples for flat. You can import and use them directly, or treat them as a starting point for writing your own postprocessing scripts.

Usage

Your postprocessing scripts must read from the path passed as the first invocation argument, and print out the path to the processed data.

The functions exported here are helpers to cut down on boilerplate.

import {readJSON, writeJSON} from 'https://deno.land/x/flat/mod.ts'

const filename = Deno.args[0]
const data = await readJSON(filename)
// pluck a specific key off
// and write it out to a different file
const newfile = `subset_of_${filename}`
await writeJSON(newfile, data.path.to.something)
console.log(newfile)

Examples

Can be found in the examples folder:

  • deno run --allow-read --allow-write examples/csv/csv-example.ts
  • deno run --allow-read --allow-write examples/csv/arquero-example.ts
  • deno run -A examples/image/image-example.ts
  • deno run -A examples/xlsx/xlsx-example.ts
  • deno run -A --unstable examples/zip/zip-example.ts

Testing

Run all the tests:

deno test -A tests/*

Run separate tests

deno test -A tests/csv-test.ts

License

MIT! See LICENSE

About

A collection of postprocessing utilities for flat

Topics

Resources

Stars

58 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages