From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/laggard/bin/cmd.js | 48 ----------------------------------------- 1 file changed, 48 deletions(-) delete mode 100755 node_modules/laggard/bin/cmd.js (limited to 'node_modules/laggard/bin/cmd.js') diff --git a/node_modules/laggard/bin/cmd.js b/node_modules/laggard/bin/cmd.js deleted file mode 100755 index d5531747..00000000 --- a/node_modules/laggard/bin/cmd.js +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env node -/*eslint no-console: 0, no-undef: 0*/ - -'use strict'; - -const fs = require('fs'); -const read = require('read-file-stdin'); -const write = require('write-file-stdout'); -const minimist = require('minimist'); -const laggard = require('../'); - -const OPTS = minimist(process.argv.slice(2), { - boolean: [ 's' ], - alias: { - h: 'help', - s: 'sourcemap', - v: 'version' - } - }), - FILE = OPTS._[0], - OUT = OPTS._[1]; - -// Fetch verion from package.json -if (OPTS.version) { - return console.log(require('../package.json').version); -} - -// Pipe out help doc from help.txt -if (FILE === 'help' || OPTS.help) { - return fs.createReadStream(path.join(__dirname, '/help.txt')) - .pipe(process.stdout) - .on('close', () => process.exit(1)); -} - -read(FILE, function (err, buf) { - if (err) { - throw err; - } - laggard.process(String(buf), { from: FILE, to: OUT }).then(function (result) { - write(OUT, result.css); - if (OPTS.map && OPTS.to) { - fs.writeFile(OPTS.to + '.map', result.map.toString()); - } - }).catch((err) => { - console.error(err); - process.exit(1); - }); -}); \ No newline at end of file -- cgit v1.2.3