@alvincrespo/hashnode-content-converter - v0.2.2
    Preparing search index...

    Interface HashnodeExport

    Root structure of a Hashnode export JSON file.

    The export file contains an array of posts under the posts key.

    import { readFileSync } from 'fs';

    const exportData: HashnodeExport = JSON.parse(
    readFileSync('./hashnode-export.json', 'utf-8')
    );

    console.log(`Found ${exportData.posts.length} posts`);
    interface HashnodeExport {
        posts: HashnodePost[];
    }
    Index

    Properties

    Properties

    posts: HashnodePost[]

    Array of blog posts from the Hashnode export