deverything 0.0.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/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Deverything
2
+
3
+ ## Everything you constantly need for dev
4
+
5
+ #### Validators
6
+
7
+ #### Helpers
8
+
9
+ #### Random
10
+
11
+ Random data that will please you:
12
+
13
+ - Semantic functions
14
+ - REAL data
15
+ - High performance
16
+ - Low entropy
17
+ - Complex structures
18
+
19
+ Use cases:
20
+
21
+ - Unit Testing
22
+ - Storybook
23
+ - Pass validations
24
+ - Reverse hacking
25
+ - Penetration testing
26
+ - Have fun
@@ -0,0 +1,5 @@
1
+ declare const randomInt: (start?: number, end?: number) => number;
2
+
3
+ declare const isObject: (arg: any) => boolean;
4
+
5
+ export { isObject, randomInt };
package/dist/index.js ADDED
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ isObject: () => isObject,
24
+ randomInt: () => randomInt
25
+ });
26
+ module.exports = __toCommonJS(src_exports);
27
+
28
+ // src/random/randomInt.ts
29
+ var randomInt = (start = Number.MIN_VALUE, end = Number.MAX_VALUE) => Math.floor(Math.random() * (end - start + 1) + start);
30
+
31
+ // src/validators/isObject.ts
32
+ var isObject = (arg) => Object.prototype.toString.call(arg) === "[object Object]";
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ isObject,
36
+ randomInt
37
+ });
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "deverything",
3
+ "version": "0.0.1",
4
+ "description": "Everything you need for Dev",
5
+ "main": "dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "sideEffects": false,
9
+ "files": [
10
+ "dist/**"
11
+ ],
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/codeledge/deverything.git"
15
+ },
16
+ "keywords": [
17
+ "random",
18
+ "generator",
19
+ "fake",
20
+ "testing",
21
+ "validators",
22
+ "helpers",
23
+ "toolkit",
24
+ "words",
25
+ "numbers",
26
+ "dates",
27
+ "types"
28
+ ],
29
+ "author": "ogroppo",
30
+ "license": "MIT",
31
+ "devDependencies": {
32
+ "@babel/core": "^7.21.0",
33
+ "@babel/preset-env": "^7.20.2",
34
+ "@babel/preset-typescript": "^7.21.0",
35
+ "@jest/globals": "^29.4.3",
36
+ "@types/jest": "^29.4.0",
37
+ "@types/node": "^18.14.2",
38
+ "jest": "^29.4.3",
39
+ "ts-node": "^10.9.1",
40
+ "tsup": "^6.6.3",
41
+ "typescript": "^4.9.5"
42
+ },
43
+ "scripts": {
44
+ "build": "tsup src/index.ts --dts",
45
+ "dev": "tsup src/index.ts --format esm,cjs --watch --dts",
46
+ "lint": "TIMING=1 eslint src --fix",
47
+ "clean": "rm -rf node_modules && rm -rf dist",
48
+ "prepublish": "pnpm build",
49
+ "test": "jest"
50
+ }
51
+ }