summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/commonjs/node_modules/left-pad/package.json
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-08-09 21:06:01 +0200
committerGitHub <noreply@github.com>2022-08-09 21:06:01 +0200
commit1f54d877895ea25258a941818f07c6e84d44a7a2 (patch)
tree1999d04ec926d464c94ed2c5a9fe10fb84f3de24 /cli/tests/testdata/commonjs/node_modules/left-pad/package.json
parentaf618e3b8fb11f3947ab5ded9523cdca9cf77ced (diff)
feat: add ext/node for require support (#15362)
This commit adds "ext/node" extension that implementes CommonJS module system. In the future this extension might be extended to actually contain implementation of Node compatibility layer in favor of "deno_std/node". Currently this functionality is not publicly exposed, it is available via "Deno[Deno.internal].require" namespace and is meant to be used by other functionality to be landed soon. This is a minimal first pass, things that still don't work: support for dynamic imports in CJS conditional exports
Diffstat (limited to 'cli/tests/testdata/commonjs/node_modules/left-pad/package.json')
-rw-r--r--cli/tests/testdata/commonjs/node_modules/left-pad/package.json68
1 files changed, 68 insertions, 0 deletions
diff --git a/cli/tests/testdata/commonjs/node_modules/left-pad/package.json b/cli/tests/testdata/commonjs/node_modules/left-pad/package.json
new file mode 100644
index 000000000..57be04271
--- /dev/null
+++ b/cli/tests/testdata/commonjs/node_modules/left-pad/package.json
@@ -0,0 +1,68 @@
+{
+ "_from": "left-pad",
+ "_id": "left-pad@1.3.0",
+ "_inBundle": false,
+ "_integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==",
+ "_location": "/left-pad",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "tag",
+ "registry": true,
+ "raw": "left-pad",
+ "name": "left-pad",
+ "escapedName": "left-pad",
+ "rawSpec": "",
+ "saveSpec": null,
+ "fetchSpec": "latest"
+ },
+ "_requiredBy": [
+ "#USER",
+ "/"
+ ],
+ "_resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz",
+ "_shasum": "5b8a3a7765dfe001261dde915589e782f8c94d1e",
+ "_spec": "left-pad",
+ "_where": "/Users/kun/Projects/Deno/deno/std/node/tests",
+ "author": {
+ "name": "azer"
+ },
+ "bugs": {
+ "url": "https://github.com/stevemao/left-pad/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": "use String.prototype.padStart()",
+ "description": "String left pad",
+ "devDependencies": {
+ "benchmark": "^2.1.0",
+ "fast-check": "0.0.8",
+ "tape": "*"
+ },
+ "homepage": "https://github.com/stevemao/left-pad#readme",
+ "keywords": [
+ "leftpad",
+ "left",
+ "pad",
+ "padding",
+ "string",
+ "repeat"
+ ],
+ "license": "WTFPL",
+ "main": "index.js",
+ "maintainers": [
+ {
+ "name": "Cameron Westland",
+ "email": "camwest@gmail.com"
+ }
+ ],
+ "name": "left-pad",
+ "repository": {
+ "url": "git+ssh://git@github.com/stevemao/left-pad.git",
+ "type": "git"
+ },
+ "scripts": {
+ "bench": "node perf/perf.js",
+ "test": "node test"
+ },
+ "types": "index.d.ts",
+ "version": "1.3.0"
+}