Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
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
The npm package airtable-ts-codegen receives a total of 14 weekly downloads. As such, airtable-ts-codegen popularity was classified as not popular.
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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.