Skip to content

Instantly share code, notes, and snippets.

@vit1251
vit1251 / index.mjs
Created December 24, 2020 22:07
Import N-API extension in Node module source code
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const addon = require('YOUR_ADDON_PATH');
@johnfercher
johnfercher / maroto.go
Last active November 30, 2020 00:21
ZPL label created with Maroto
package main
import (
"fmt"
"github.com/johnfercher/maroto/pkg/consts"
"github.com/johnfercher/maroto/pkg/pdf"
"github.com/johnfercher/maroto/pkg/props"
"os"
"time"
)