@xn-lib/base 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/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e){return typeof e=="string"}function r(e){return typeof e=="number"}function t(e){return e!==null&&typeof e=="object"}function i(e){return t(e)?JSON.parse(JSON.stringify(e)):e}exports.deepClone=i;exports.isNumber=r;exports.isObject=t;exports.isString=n;
package/dist/index.mjs ADDED
@@ -0,0 +1,18 @@
1
+ function e(n) {
2
+ return typeof n == "string";
3
+ }
4
+ function r(n) {
5
+ return typeof n == "number";
6
+ }
7
+ function t(n) {
8
+ return n !== null && typeof n == "object";
9
+ }
10
+ function i(n) {
11
+ return t(n) ? JSON.parse(JSON.stringify(n)) : n;
12
+ }
13
+ export {
14
+ i as deepClone,
15
+ r as isNumber,
16
+ t as isObject,
17
+ e as isString
18
+ };
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@xn-lib/base",
3
+ "version": "0.0.1",
4
+ "description": "XN base utilities",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.cjs"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "vite build",
20
+ "dev": "vite build --watch",
21
+ "clean": "rimraf dist"
22
+ },
23
+ "keywords": [
24
+ "xn",
25
+ "base",
26
+ "utilities"
27
+ ],
28
+ "author": "",
29
+ "license": "MIT",
30
+ "publishConfig": {
31
+ "access": "public"
32
+ }
33
+ }