Buckets:

imerfanrajabee's picture
download
raw
540 Bytes
'use strict';
// This example is used in the documentation.
// 1. const { parseArgs } = require('node:util'); // from node
// 2. const { parseArgs } = require('@pkgjs/parseargs'); // from package
const { parseArgs } = require('..'); // in repo
const args = ['-f', '--bar', 'b'];
const options = {
foo: {
type: 'boolean',
short: 'f'
},
bar: {
type: 'string'
}
};
const {
values,
positionals
} = parseArgs({ args, options });
console.log(values, positionals);
// Try the following:
// node simple-hard-coded.js

Xet Storage Details

Size:
540 Bytes
·
Xet hash:
fee2fa49b1c4efd50387139eec8ec194de9c0612a9c2d468e861b3371b4ee47b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.