@es-meta/unicode-gen 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/args.js +1 -1
- package/package.json +1 -1
package/dist/args.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const yargs=require("yargs"),hideBin=require("yargs/helpers")["hideBin"],runner=yargs.scriptName("unicode-gen").usage("Usage: $0 -p [property-name] -o [output-file]").example("$0 -u 17.0.0 -p ID_Start -o id_start.json").option("property",{alias:"p",describe:"The property name of Unicode",type:"string",nargs:1}).requiresArg("property").option("unicode-version",{alias:"u",describe:"The unicode version",type:"string",default:"17.0.0",nargs:1}).option("out",{alias:"o",describe:"The output filename",type:"string",nargs:1}).alias("help","h").version(
|
|
1
|
+
const yargs=require("yargs"),hideBin=require("yargs/helpers")["hideBin"],version=require("./package.json")["version"],runner=yargs.scriptName("unicode-gen").usage("Usage: $0 -p [property-name] -o [output-file]").example("$0 -u 17.0.0 -p ID_Start -o id_start.json").option("property",{alias:"p",describe:"The property name of Unicode",type:"string",nargs:1}).requiresArg("property").option("unicode-version",{alias:"u",describe:"The unicode version",type:"string",default:"17.0.0",nargs:1}).option("out",{alias:"o",describe:"The output filename",type:"string",nargs:1}).alias("help","h").version(version).alias("version","v").wrap(80);function error(e){console.error("[ERROR] "+e),process.exit()}module.exports=function(e){var e=runner.parse(hideBin(e)),{property:r,unicodeVersion:o,out:i}=e,n=(void 0===r&&error("Please input Unicode property with `-p`\n"),require("./data"))["versions"];return-1===n.indexOf(o)&&(console.log("- possible Unicode version list:"),console.log(n),error("Invalid unicode version: "+o)),void 0===i&&(e.out=r+".json"),e};
|