1.4.1 • Published 4 months ago

singer-node v1.4.1

Weekly downloads
-
License
AGPL-3.0-only
Repository
github
Last release
4 months ago

singer-node

Writes the Singer format from Node.

Provide functions and classes to help write the Singer format from node.

Based on singer-python

Usage

npm install singer-node

import {write_schema, write_records, write_state} from "singer-node"
import {List} from "immutable"

write_schema('my_table', {
    properties: {
      id: {
        type: 'string'
      }
    }
  },
  List(['id'])
)
write_records('my_table',
  List([{
    id: 'b'
  }, {
    id: 'd'
  }])
)
write_state({
  bookmarks: 
    {my_table: 'd'}
})

Sponsorship

Singer-node is written and maintained by Biron https://birondata.com/

Acknowledgements

Special thanks to the people who built

License

Copyright © 2022 Biron

Distributed under the AGPLv3