Reference ./package.json for pkg build process.
This commit is contained in:
parent
cb9dfe3f00
commit
81543f3583
|
@ -9,7 +9,7 @@ const os = require('os')
|
||||||
|
|
||||||
const osTmp : string = os.tmpdir()
|
const osTmp : string = os.tmpdir()
|
||||||
const TMP : string = path.join(osTmp, '/v2f/')
|
const TMP : string = path.join(osTmp, '/v2f/')
|
||||||
const pkg : any = require('package.json')
|
const pkg : any = require('./package.json')
|
||||||
|
|
||||||
class Dimensions{
|
class Dimensions{
|
||||||
h : number;
|
h : number;
|
||||||
|
@ -223,7 +223,7 @@ cmd.arguments('<input> <output>')
|
||||||
.option('-f, --film <gauge>', 'Choose film gauge: 16mm, super16, 35mm')
|
.option('-f, --film <gauge>', 'Choose film gauge: 16mm, super16, 35mm')
|
||||||
.option('-w, --width <inches>', 'Output page width, in inches. Default 8.5')
|
.option('-w, --width <inches>', 'Output page width, in inches. Default 8.5')
|
||||||
.option('-l, --length <inches>', 'Output page length, in inches. Default 11')
|
.option('-l, --length <inches>', 'Output page length, in inches. Default 11')
|
||||||
.option('-e, --executable <binary>', 'Alternate binary to use in place of avconv')
|
.option('-e, --executable <binary>', 'Alternate binary to use in place of avconv, ie ffmpeg')
|
||||||
.option('-v, --verbose', 'Run in verbose mode')
|
.option('-v, --verbose', 'Run in verbose mode')
|
||||||
.option('-n, --negative', 'Invert color channels to create negative')
|
.option('-n, --negative', 'Invert color channels to create negative')
|
||||||
.parse(args)
|
.parse(args)
|
||||||
|
|
4
v2f.js
4
v2f.js
|
@ -7,7 +7,7 @@ const path = require('path');
|
||||||
const os = require('os');
|
const os = require('os');
|
||||||
const osTmp = os.tmpdir();
|
const osTmp = os.tmpdir();
|
||||||
const TMP = path.join(osTmp, '/v2f/');
|
const TMP = path.join(osTmp, '/v2f/');
|
||||||
const pkg = require('package.json');
|
const pkg = require('./package.json');
|
||||||
class Dimensions {
|
class Dimensions {
|
||||||
constructor(filmStr, dpi) {
|
constructor(filmStr, dpi) {
|
||||||
const IN = dpi / 25.4;
|
const IN = dpi / 25.4;
|
||||||
|
@ -202,7 +202,7 @@ cmd.arguments('<input> <output>')
|
||||||
.option('-f, --film <gauge>', 'Choose film gauge: 16mm, super16, 35mm')
|
.option('-f, --film <gauge>', 'Choose film gauge: 16mm, super16, 35mm')
|
||||||
.option('-w, --width <inches>', 'Output page width, in inches. Default 8.5')
|
.option('-w, --width <inches>', 'Output page width, in inches. Default 8.5')
|
||||||
.option('-l, --length <inches>', 'Output page length, in inches. Default 11')
|
.option('-l, --length <inches>', 'Output page length, in inches. Default 11')
|
||||||
.option('-e, --executable <binary>', 'Alternate binary to use in place of avconv')
|
.option('-e, --executable <binary>', 'Alternate binary to use in place of avconv, ie ffmpeg')
|
||||||
.option('-v, --verbose', 'Run in verbose mode')
|
.option('-v, --verbose', 'Run in verbose mode')
|
||||||
.option('-n, --negative', 'Invert color channels to create negative')
|
.option('-n, --negative', 'Invert color channels to create negative')
|
||||||
.parse(args);
|
.parse(args);
|
||||||
|
|
Loading…
Reference in New Issue