https://github.com/elsoul/skeet-spreadsheet-utils
https://github.com/elsoul/skeet-spreadsheet-utils
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/elsoul/skeet-spreadsheet-utils
- Owner: elsoul
- License: apache-2.0
- Created: 2023-11-22T19:52:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-22T20:01:12.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T04:54:48.215Z (6 months ago)
- Language: TypeScript
- Size: 1.05 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Skeet Spreadsheet Utils
This plugin is a collection of utilities for Spreadsheet.
Especially works with [Skeet Framework](https://skeet.dev).## Installation
```bash
npm install @skeet-framework/spreadsheet-utils
```with Skeet Framework
```bash
skeet yarn add -p @skeet-framework/spreadsheet-utils
```## Usage
The function assumes that the 'GOOGLE_APPLICATION_CREDENTIALS' environment variable is set with the path to the Google service account credentials JSON file.
It returns the data from the spreadsheet.```typescript
import { addDataToSheet } from '@skeet-framework/spreadsheet-utils'const spreadsheetId = 'spreadsheetId'
const sheetTitle = 'sheetTitle'
const run = async () => {
const value = [
['Date', 'Name', 'Address', 'Amount(SOL)', 'Epoch', 'PostBalance(SOL)'],
[1, 2, 3, 4, 5, 6],
]
const data = await addDataToSheet(spreadsheetId, sheetTitle, value)
console.log(data)
}run()
```more functions can be found in the
- [Skeet Spreadsheet Utils TypeDoc](https://elsoul.github.io/skeet-spreadsheet-utils/)
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/elsoul/skeet-spreadsheet-utils This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The package is available as open source under the terms of the [Apache-2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
## Code of Conduct
Everyone interacting in the SKEET project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/elsoul/skeet-cli/blob/master/CODE_OF_CONDUCT.md).