@x-oasis/to-string 0.0.16

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,19 @@
1
+ # @x-oasis/to-string
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ $ npm i @x-oasis/to-string
7
+ ```
8
+
9
+ ## How to use
10
+
11
+ ```typescript
12
+ import toString from '@x-oasis/to-string'
13
+ ```
14
+
15
+ ## How to run test
16
+
17
+ ```bash
18
+ $ pnpm test
19
+ ```
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./to-string.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./to-string.cjs.development.js')
8
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = /*#__PURE__*/Function.call.bind(Object.prototype.toString);
6
+
7
+ exports.default = index;
8
+ //# sourceMappingURL=to-string.cjs.development.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-string.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["export default Function.call.bind(Object.prototype.toString);\n"],"names":["Function","call","bind","Object","prototype","toString"],"mappings":";;;;AAAA,yBAAeA,QAAQ,CAACC,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAAC;;;;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=Function.call.bind(Object.prototype.toString);
2
+ //# sourceMappingURL=to-string.cjs.production.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-string.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["export default Function.call.bind(Object.prototype.toString);\n"],"names":["Function","call","bind","Object","prototype","toString"],"mappings":"oFAAeA,SAASC,KAAKC,KAAKC,OAAOC,UAAUC"}
@@ -0,0 +1,4 @@
1
+ var index = /*#__PURE__*/Function.call.bind(Object.prototype.toString);
2
+
3
+ export default index;
4
+ //# sourceMappingURL=to-string.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-string.esm.js","sources":["../src/index.ts"],"sourcesContent":["export default Function.call.bind(Object.prototype.toString);\n"],"names":["Function","call","bind","Object","prototype","toString"],"mappings":"AAAA,yBAAeA,QAAQ,CAACC,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAAC;;;;"}
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@x-oasis/to-string",
3
+ "version": "0.0.16",
4
+ "description": "to-string function",
5
+ "main": "dist/index.js",
6
+ "typings": "dist/index.d.ts",
7
+ "module": "dist/to-string.esm.js",
8
+ "files": [
9
+ "dist",
10
+ "index.ts",
11
+ "src"
12
+ ],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "devDependencies": {
16
+ "tsdx": "^0.14.1"
17
+ },
18
+ "scripts": {
19
+ "build": "tsdx build --tsconfig tsconfig.build.json",
20
+ "clean": "rimraf ./dist",
21
+ "test": "vitest",
22
+ "compile": "tsc -p tsconfig.build.json"
23
+ }
24
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export default Function.call.bind(Object.prototype.toString);