- Notifications
You must be signed in to change notification settings - Fork0
Maxim-Mazurok/ez-vcard
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
It is a vCard generator written in TypeScript for NodeJS that uses amazingez-vcard library written in Java.It can read and write vCards in many different formats. The "ez" stands for "easy" because the goal is to create a library that's easy to use.
- Install JDK
- Install
make
andg++
on Ubuntu:sudo apt install build-essential
(to build node-java dependency) - Install ez-vcard (this package)
npm i ez-vcard
constezVcard=require('ez-vcard').default;(async()=>{constvcard=awaitezVcard({name:{first:'Maxim'}});console.log(vcard);})();
npm install @types/node typescript
src/vcard.ts
importezVcardfrom'ez-vcard';(async()=>{constvcard=awaitezVcard({name:{first:'Maxim'}});console.log(vcard);})();
tsconfig.json
{"compilerOptions": {"esModuleInterop":true }}
and run:npx ts-node src/vcard.ts
or compile:npx tsc --outDir dist
.
Note: the first run might take a while, because it downloads maven packages required for package to run. Subsequent runs will be much faster than the first one.
- Status:It works!
- tsJavaModule.ts file containsez-vcard TypeScript type definitions fornode-java generated byMaxim-Mazurok/ez-vcard-ts-java-types
- index.ts exports default function to generate vcard
About
vCard generator written in TypeScript for NodeJS that uses amazing ez-vcard library written in Java
Topics
Resources
Stars
Watchers
Forks
Packages0
No packages published