Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
airtable-ts-codegen
Advanced tools
Autogenerate TypeScript definitions for your Airtable base
Run with:
AIRTABLE_API_KEY=pat1234.abcd AIRTABLE_BASE_ID=app1234 npx airtable-ts-codegen
This will output a file app1234.ts
that exports all the table definitions
/* DO NOT EDIT: this file was automatically generated by airtable-ts-codegen */
/* eslint-disable */
import { Item, Table } from 'airtable-ts';
export interface Task extends Item {
id: string,
name: string,
status: string,
dueAt: number,
isOptional: boolean,
}
export const tasksTable: Table<Task> = {
name: 'Tasks',
baseId: 'app1234',
tableId: 'tbl5678',
mappings: {
name: 'fld9012',
status: 'fld3456',
dueAt: 'fld7890',
isOptional: 'fld1234',
},
schema: {
name: 'string',
status: 'string',
dueAt: 'number',
isOptional: 'boolean',
},
};
You can then easily use this with airtable-ts, for example:
import { AirtableTs } from 'airtable-ts';
import { tasksTable } from './generated/app1234';
const db = new AirtableTs({ apiKey: 'pat1234.abcdef' });
const allTasks = await db.scan(tasksTable);
// You now have all the benefits of airtable-ts, without having to define schemas manually 🎉
Pull requests are welcomed on GitHub! To get started:
npm install
npm run test
to run testsnpm run build
npm start
Versions follow the semantic versioning spec.
To release:
npm version <major | minor | patch>
to bump the versiongit push --follow-tags
to push with tagsFAQs
Autogenerate TypeScript definitions for your Airtable base
We found that airtable-ts-codegen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.