Comparing version 1.0.21 to 1.0.22
@@ -1,5 +0,7 @@ | ||
import { program } from "commander"; | ||
import justEcho from "../dist/index"; | ||
import pkg from "../package"; | ||
#!/usr/bin/env node | ||
const { program } = require('commander'); | ||
const justEcho = require('../dist/index'); | ||
const pkg = require('../package'); | ||
const { version, description, name } = pkg; | ||
@@ -10,10 +12,10 @@ | ||
.version(version) | ||
.arguments("[args...]") | ||
.arguments('[args...]') | ||
.description(description, { | ||
args: "echoes (prints) the provided arguments to stdout", | ||
args: 'echoes (prints) the provided arguments to stdout', | ||
}) | ||
.action((args) => { | ||
process.stdout.write(`${justEcho(...args).join(" ")}\n`); | ||
process.stdout.write(`${justEcho(...args).join(' ')}\n`); | ||
}); | ||
program.parse(); |
declare const justEcho: <T extends unknown[]>(...arg: T) => T; | ||
export default justEcho; | ||
export = justEcho; |
@@ -0,2 +1,3 @@ | ||
"use strict"; | ||
const justEcho = (...arg) => arg; | ||
export default justEcho; | ||
module.exports = justEcho; |
{ | ||
"name": "just-echo", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "npm package template", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"bin": "bin/start.sh", | ||
"type": "module", | ||
"bin": "bin/index.js", | ||
"scripts": { | ||
"build": "tsc --project misc/tsconfig.json", | ||
"lint": "eslint src tests bin misc --fix --config misc/.eslintrc.cjs --ext .js,.cjs,.ts", | ||
"build": "tsc --project configs/tsconfig.json", | ||
"lint": "eslint src tests bin configs --fix --config configs/.eslintrc.js --ext .js,.ts", | ||
"setup-hooks": "husky install", | ||
"prepare": "npm run build && npm run setup-hooks", | ||
"test": "mocha --require=./bin/supress-experimental-warning.cjs --experimental-specifier-resolution=node tests/main.test", | ||
"test": "mocha tests/main.test", | ||
"docs": "typedoc src/index.ts", | ||
"cli": "bin/start.sh" | ||
"cli": "bin/index.js" | ||
}, | ||
@@ -18,0 +17,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6230
6
21
No