feat:node-modules

This commit is contained in:
houjunxiang
2025-11-24 10:26:18 +08:00
parent 753766893b
commit 8a3e48d856
8825 changed files with 567399 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.bigintDocs = void 0;
const bigintDocs = exports.bigintDocs = {
name: 'bigint',
category: 'Construction',
syntax: ['bigint(x)'],
description: 'Create a bigint, an integer with an arbitrary number of digits, from a number or string.',
examples: ['123123123123123123 # a large number will lose digits', 'bigint("123123123123123123")', 'bignumber(["1", "3", "5"])'],
seealso: ['boolean', 'bignumber', 'number', 'complex', 'fraction', 'index', 'matrix', 'string', 'unit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.bignumberDocs = void 0;
const bignumberDocs = exports.bignumberDocs = {
name: 'bignumber',
category: 'Construction',
syntax: ['bignumber(x)'],
description: 'Create a big number from a number or string.',
examples: ['0.1 + 0.2', 'bignumber(0.1) + bignumber(0.2)', 'bignumber("7.2")', 'bignumber("7.2e500")', 'bignumber([0.1, 0.2, 0.3])'],
seealso: ['boolean', 'bigint', 'complex', 'fraction', 'index', 'matrix', 'string', 'unit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.booleanDocs = void 0;
const booleanDocs = exports.booleanDocs = {
name: 'boolean',
category: 'Construction',
syntax: ['x', 'boolean(x)'],
description: 'Convert a string or number into a boolean.',
examples: ['boolean(0)', 'boolean(1)', 'boolean(3)', 'boolean("true")', 'boolean("false")', 'boolean([1, 0, 1, 1])'],
seealso: ['bignumber', 'complex', 'index', 'matrix', 'number', 'string', 'unit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.complexDocs = void 0;
const complexDocs = exports.complexDocs = {
name: 'complex',
category: 'Construction',
syntax: ['complex()', 'complex(re, im)', 'complex(string)'],
description: 'Create a complex number.',
examples: ['complex()', 'complex(2, 3)', 'complex("7 - 2i")'],
seealso: ['bignumber', 'boolean', 'index', 'matrix', 'number', 'string', 'unit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createUnitDocs = void 0;
const createUnitDocs = exports.createUnitDocs = {
name: 'createUnit',
category: 'Construction',
syntax: ['createUnit(definitions)', 'createUnit(name, definition)'],
description: 'Create a user-defined unit and register it with the Unit type.',
examples: ['createUnit("foo")', 'createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})', 'createUnit("mph", "1 mile/hour")'],
seealso: ['unit', 'splitUnit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.fractionDocs = void 0;
const fractionDocs = exports.fractionDocs = {
name: 'fraction',
category: 'Construction',
syntax: ['fraction(num)', 'fraction(matrix)', 'fraction(num,den)', 'fraction({n: num, d: den})'],
description: 'Create a fraction from a number or from integer numerator and denominator.',
examples: ['fraction(0.125)', 'fraction(1, 3) + fraction(2, 5)', 'fraction({n: 333, d: 53})', 'fraction([sqrt(9), sqrt(10), sqrt(11)])'],
seealso: ['bignumber', 'boolean', 'complex', 'index', 'matrix', 'string', 'unit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.indexDocs = void 0;
const indexDocs = exports.indexDocs = {
name: 'index',
category: 'Construction',
syntax: ['[start]', '[start:end]', '[start:step:end]', '[start1, start 2, ...]', '[start1:end1, start2:end2, ...]', '[start1:step1:end1, start2:step2:end2, ...]'],
description: 'Create an index to get or replace a subset of a matrix',
examples: ['A = [1, 2, 3; 4, 5, 6]', 'A[1, :]', 'A[1, 2] = 50', 'A[1:2, 1:2] = 1', 'B = [1, 2, 3]', 'B[B>1 and B<3]'],
seealso: ['bignumber', 'boolean', 'complex', 'matrix,', 'number', 'range', 'string', 'unit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.matrixDocs = void 0;
const matrixDocs = exports.matrixDocs = {
name: 'matrix',
category: 'Construction',
syntax: ['[]', '[a1, b1, ...; a2, b2, ...]', 'matrix()', 'matrix("dense")', 'matrix([...])'],
description: 'Create a matrix.',
examples: ['[]', '[1, 2, 3]', '[1, 2, 3; 4, 5, 6]', 'matrix()', 'matrix([3, 4])', 'matrix([3, 4; 5, 6], "sparse")', 'matrix([3, 4; 5, 6], "sparse", "number")'],
seealso: ['bignumber', 'boolean', 'complex', 'index', 'number', 'string', 'unit', 'sparse']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.numberDocs = void 0;
const numberDocs = exports.numberDocs = {
name: 'number',
category: 'Construction',
syntax: ['x', 'number(x)', 'number(unit, valuelessUnit)'],
description: 'Create a number or convert a string or boolean into a number.',
examples: ['2', '2e3', '4.05', 'number(2)', 'number("7.2")', 'number(true)', 'number([true, false, true, true])', 'number(unit("52cm"), "m")'],
seealso: ['bignumber', 'bigint', 'boolean', 'complex', 'fraction', 'index', 'matrix', 'string', 'unit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.sparseDocs = void 0;
const sparseDocs = exports.sparseDocs = {
name: 'sparse',
category: 'Construction',
syntax: ['sparse()', 'sparse([a1, b1, ...; a1, b2, ...])', 'sparse([a1, b1, ...; a1, b2, ...], "number")'],
description: 'Create a sparse matrix.',
examples: ['sparse()', 'sparse([3, 4; 5, 6])', 'sparse([3, 0; 5, 0], "number")'],
seealso: ['bignumber', 'boolean', 'complex', 'index', 'number', 'string', 'unit', 'matrix']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.splitUnitDocs = void 0;
const splitUnitDocs = exports.splitUnitDocs = {
name: 'splitUnit',
category: 'Construction',
syntax: ['splitUnit(unit: Unit, parts: Unit[])'],
description: 'Split a unit in an array of units whose sum is equal to the original unit.',
examples: ['splitUnit(1 m, ["feet", "inch"])'],
seealso: ['unit', 'createUnit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.stringDocs = void 0;
const stringDocs = exports.stringDocs = {
name: 'string',
category: 'Construction',
syntax: ['"text"', 'string(x)'],
description: 'Create a string or convert a value to a string',
examples: ['"Hello World!"', 'string(4.2)', 'string(3 + 2i)'],
seealso: ['bignumber', 'boolean', 'complex', 'index', 'matrix', 'number', 'unit']
};

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.unitDocs = void 0;
const unitDocs = exports.unitDocs = {
name: 'unit',
category: 'Construction',
syntax: ['value unit', 'unit(value, unit)', 'unit(string)'],
description: 'Create a unit.',
examples: ['5.5 mm', '3 inch', 'unit(7.1, "kilogram")', 'unit("23 deg")'],
seealso: ['bignumber', 'boolean', 'complex', 'index', 'matrix', 'number', 'string']
};