New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

readcv

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readcv

This package contains helper functions for creating your Read.cv site or template.

latest
npmnpm
Version
0.1.5
Version published
Weekly downloads
2
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

readcv

This package contains helper functions for creating your Read.cv site or template.

combineCollections

The combineCollections helper function is provided by default via the readcv library. Use it to combine multiple collections into a single array, sorted chronologically. You will see combineCollections imported by default in Global imports.

import { combineCollections } from 'readcv';

Example

A common use case would be wanting to display your projects and side projects in a single list.

// a simple component that combines projects and side projects
function AllProjects(props) {
	let allProjects = combineCollections(cv.projects, cv.sideProjects);

	return (
		<ul>
			{allProjects.map((project, index) => {
				return (
					<li>{project.title}</li>
				)
			})}
		</ul>
	)
}

RichText

The RichText component is provided by default via the readcv library. Use the RichText component wherever you need to render a string as rich text. You will see RichText imported by default in Global imports.

import { RichText } from 'readcv';

Example

A common example would be the description field of an experience, or the about field on profiles.

// a simple component that displays a user's about section
import { RichText } from 'readcv';

function About(props) {
	return (
		<RichText text={cv.general.about}/>
	)
}

FAQs

Package last updated on 17 Jun 2024

Did you know?

Socket

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.

Install

Related posts