createSocialsAndOthers
Usage
import { createSocialsAndOthers } from '@justaname.id/sdk'
// Basic usage
const [socials, others] = createSocialsAndOthers([
{ key: 'description', value: 'My personal description' },
{ key: 'com.twitter', value: '@username' },
{ key: 'com.github', value: 'githubuser' },
{ key: 'url', value: 'https://example.com' },
{ key: 'custom', value: 'custom value' }
])
console.log(socials)
// [
// { key: 'com.twitter', value: '@username', name: 'Twitter' },
// { key: 'com.github', value: 'githubuser', name: 'Github' }
// ]
console.log(others)
// [
// { key: 'custom', value: 'custom value' }
// ]Supported Social Platforms
Returns
Parameters
Defined in
Last updated