singer-node
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i singer-node

Weekly Downloads

27

Version

2.0.0

License

AGPL-3.0-only

Unpacked Size

106 kB

Total Files

39

Last publish

Collaborators

  • mpocard
  • pharoz
  • yuruh