jscrewit 2.40.0 → 3.0.0
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/Features.md +46 -180
- package/{readme.md → README.md} +30 -30
- package/api-doc/JScrewIt/namespaces/EncodeOptions/README.md +9 -0
- package/api-doc/{type-aliases → JScrewIt/namespaces/EncodeOptions/type-aliases}/RunAs.md +3 -2
- package/api-doc/README.md +5 -4
- package/api-doc/interfaces/CustomFeature.md +3 -3
- package/api-doc/interfaces/ElementaryFeature.md +2 -2
- package/api-doc/interfaces/{encode.md → EncodeInterface.md} +2 -2
- package/api-doc/interfaces/EncodeOptions.md +4 -4
- package/api-doc/interfaces/Feature.md +3 -3
- package/api-doc/interfaces/FeatureAll.md +64 -582
- package/api-doc/interfaces/FeatureConstructor.md +143 -876
- package/api-doc/interfaces/PredefinedFeature.md +2 -2
- package/api-doc/interfaces/default.md +1 -1
- package/api-doc/type-aliases/ElementaryFeatureName.md +1 -1
- package/api-doc/type-aliases/PredefinedFeatureName.md +1 -1
- package/lib/encode.d.ts +12 -10
- package/lib/feature-all.d.ts +80 -428
- package/lib/feature.d.ts +19 -21
- package/lib/jscrewit.d.ts +6 -6
- package/lib/jscrewit.js +396 -2028
- package/lib/jscrewit.min.js +2 -2
- package/package.json +2 -2
- package/screw.js +87 -103
- package/tools/cli.js +57 -73
- package/tools/time-utils.js +10 -26
- package/ui/ui.js +1 -1
- package/api-doc/variables/Feature.md +0 -7
- package/api-doc/variables/encode.md +0 -7
- package/tools/text-utils.js +0 -37
- /package/{license.txt → LICENSE.txt} +0 -0
package/tools/text-utils.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* global global, self */
|
|
2
|
-
|
|
3
|
-
'use strict';
|
|
4
|
-
|
|
5
|
-
(function (global)
|
|
6
|
-
{
|
|
7
|
-
function padLeft(str, length)
|
|
8
|
-
{
|
|
9
|
-
str = String(str);
|
|
10
|
-
var result = repeat(' ', length - str.length) + str;
|
|
11
|
-
return result;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function padRight(str, length)
|
|
15
|
-
{
|
|
16
|
-
str = String(str);
|
|
17
|
-
var result = str + repeat(' ', length - str.length);
|
|
18
|
-
return result;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function repeat(str, count)
|
|
22
|
-
{
|
|
23
|
-
var result = Array(count + 1).join(str);
|
|
24
|
-
return result;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var exports = { padLeft: padLeft, padRight: padRight, repeat: repeat };
|
|
28
|
-
|
|
29
|
-
Object.keys(exports).forEach
|
|
30
|
-
(
|
|
31
|
-
function (name)
|
|
32
|
-
{
|
|
33
|
-
global[name] = exports[name];
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
)(typeof self === 'undefined' ? global : /* c8 ignore next */ self);
|
|
File without changes
|