createGenerals
Usage
import { createGenerals } from '@justaname.id/sdk'
// Basic usage
const generalTexts = createGenerals([
{ key: 'description', value: 'My personal description' },
{ key: 'url', value: 'https://example.com' },
{ key: 'email', value: '[email protected]' },
{ key: 'avatar', value: 'https://example.com/avatar.jpg' },
{ key: 'com.twitter', value: '@username' }
])
console.log(generalTexts)
// [
// { key: 'description', value: 'My personal description' },
// { key: 'url', value: 'https://example.com' },
// { key: 'email', value: '[email protected]' },
// { key: 'avatar', value: 'https://example.com/avatar.jpg' }
// ]Returns
Parameters
Defined in
Last updated