forked from sashin/sashinexists
run npm install to generate a package lock
This commit is contained in:
24
node_modules/smartypants/bin/smartypants.js
generated
vendored
Executable file
24
node_modules/smartypants/bin/smartypants.js
generated
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
#! /usr/bin/env node
|
||||
|
||||
if (process.stdin.isTTY) {
|
||||
console.error('No input!');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
var smartypants = require('..').smartypants;
|
||||
|
||||
var text = '';
|
||||
|
||||
process.stdin.setEncoding('utf8');
|
||||
|
||||
process.stdin.on('readable', () => {
|
||||
var chunk = process.stdin.read();
|
||||
if (chunk !== null) {
|
||||
text = text + chunk;
|
||||
}
|
||||
});
|
||||
|
||||
process.stdin.on('end', () => {
|
||||
process.stdout.write(smartypants(text, '1'));
|
||||
});
|
||||
|
||||
24
node_modules/smartypants/bin/smartypantsu.js
generated
vendored
Executable file
24
node_modules/smartypants/bin/smartypantsu.js
generated
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
#! /usr/bin/env node
|
||||
|
||||
if (process.stdin.isTTY) {
|
||||
console.error('No input!');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
var smartypants = require('..').smartypantsu;
|
||||
|
||||
var text = '';
|
||||
|
||||
process.stdin.setEncoding('utf8');
|
||||
|
||||
process.stdin.on('readable', () => {
|
||||
var chunk = process.stdin.read();
|
||||
if (chunk !== null) {
|
||||
text = text + chunk;
|
||||
}
|
||||
});
|
||||
|
||||
process.stdin.on('end', () => {
|
||||
process.stdout.write(smartypants(text, '1'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user