arro / airtable-json Goto Github PK
View Code? Open in Web Editor NEWA clean way to get Airtable data into JavaScript.
A clean way to get Airtable data into JavaScript.
Airtable should possible be a peer dependency instead of a dependency of this project.
Right now, the latest version of airtable is 0.11.1 and this repo is using 0.10.1 as a dependency.
Using a peer dependency instead of a dependency will let each consumer of this project manage their own version of airtable.
If a linked record links to another record, allow populating it.
Allow specifying a name for the populated record.
{
local: 'foo_linked_records',
other: 'Foo Table',
as: 'foos'
}
It's maintenance time - thanks to Airtable deprecation of API keys.
It'd be great to have a seamless way to update this lib.
it always retrieves the full table
Airtable has a rate limit of 5 requests/second. If you run into that limit while using this library there doesn't seem to be any work around right now.
Two suggestions which should help with this issue are:
max_ids_per_query
is set to 40. Airtable lets you request up to 100 items at once so increasing this to 100 would cut the number of requests needed to populate entitles by half.Hi, newbie's issue here : I have copy pasted the sample code, but I'm getting the TypeError: airtableJson is not a function
error...
node export-airtable-to-json.js
(node:122661) UnhandledPromiseRejectionWarning: TypeError: airtableJson is not a function
at getStuff (file:///home/.../export-airtable-to-json.js:7:23)
at file:///home/...export-airtable-to-json.js:15:1
at ModuleJob.run (internal/modules/esm/module_job.js:146:23)
at async Loader.import (internal/modules/esm/loader.js:165:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:122661) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:122661) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Any help/extra guidance appreciated.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.