Sha256: d2ec18e0d191e21bdc011cc7fd9eac500b313144811d9660827318ef32fdf572

Contents?: true

Size: 341 Bytes

Versions: 2

Compression:

Stored size: 341 Bytes

Contents

#!/usr/bin/env node
'use strict';
var getStdin = require('get-stdin');
var toSingleQuotes = require('./');
var input = process.argv[2];

function init(data) {
	console.log(toSingleQuotes(data));
}

if (process.stdin.isTTY) {
	if (!input) {
		console.error('String required');
		process.exit(1);
	}

	init(input);
} else {
	getStdin(init);
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/to-single-quotes/cli.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/to-single-quotes/cli.js