UNPKG

poly-crypto

Version:

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+.

13 lines (10 loc) 271 B
#!/usr/bin/env node const { PolyConvert } = require('../dist/index.cjs'); try { const [, , input, from, to] = process.argv; const out = PolyConvert.base(input, from, to); process.stdout.write(out); } catch (e) { process.stderr.write(e.message); process.exit(1); }