spatialillusions / milsymbol

Military Symbols in JavaScript
www.spatialillusions.com/milsymbol
MIT License
531 stars 132 forks source link

Provide a CLI to generate and export symbols #266

Closed chatelao closed 1 year ago

chatelao commented 2 years ago

It would be very nice, to have e.g. a NPM package with a CLI to generate offline images.

ThomasHalwax commented 2 years ago

You do not need an additional NPM package:

'use strict'
const fs = require('fs')
const ms = require('milsymbol')
const engineers = new ms.Symbol('SFGPUCEC---D---', { dtg: '311008Bmar22', uniqueDesignation: 'Hey Joe' })
const svg = engineers.asSVG()
fs.writeFile('engineers.svg', svg, (err) => console.dir(err))
spatialillusions commented 1 year ago

Is there anything other than what Thomas suggests that you want?