place-card-maker
v1.0.3
Published
A fast, easy and free printable place card maker,Design beautiful place cards in minutes with our free, user-friendly maker. Choose from 100+ customizable place cards templates, including options for meal choices. Perfect for weddings, holidays, and speci
Maintainers
Readme
Place Card Maker
A simple and flexible NPM package for generating customizable place cards for events.
Installation
npm install place-card-makerFeatures
- Easy-to-use place card generation
- Customizable card dimensions
- Flexible styling options
- Simple API
Usage
const PlaceCardMaker = require('place-card-maker');
// Default configuration
const maker = new PlaceCardMaker();
const card = maker.generate('John Doe');
console.log(card);
// Custom configuration
const customMaker = new PlaceCardMaker({
width: 250,
height: 120,
fontSize: 18,
fontFamily: 'Helvetica',
backgroundColor: '#f0f0f0',
textColor: '#333333'
});
const customCard = customMaker.generate('Jane Smith');
console.log(customCard);API
Constructor Options
width: Card width in pixels (default: 200)height: Card height in pixels (default: 100)fontSize: Text font size in pixels (default: 16)fontFamily: Text font family (default: 'Arial')backgroundColor: Card background color (default: '#ffffff')textColor: Text color (default: '#000000')
Methods
generate(name)
Generates a place card with the specified name.
name: Required. The name to be displayed on the place card.- Returns an object with
nameandcardproperties.
Demo Online
License
MIT
