Node.js SDK for Crawlab.
You can install the SDK via npm, yarn, or pnpm.
npm install @crawlab/sdk
# or
yarn add @crawlab/sdk
# or
pnpm add @crawlab/sdk
Alternatively, you can include the SDK in your package.json
file.
{
"dependencies": {
"@crawlab/sdk": "^0.7.0"
}
}
Use JavaScript or TypeScript to import the SDK and call the functions.
// JavaScript
const { saveItem } = require('@crawlab/sdk');
saveItem({
hello: 'world',
});
// TypeScript
import { saveItem } from '@crawlab/sdk';
saveItem({
hello: 'world',
});