milsymbol icon indicating copy to clipboard operation
milsymbol copied to clipboard

Provide a CLI to generate and export symbols

Open chatelao opened this issue 2 years ago • 1 comments

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

chatelao avatar Apr 10 '22 05:04 chatelao

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))

ThomasHalwax avatar Apr 12 '22 07:04 ThomasHalwax

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

spatialillusions avatar Jan 18 '23 19:01 spatialillusions