{"name":"loupe","version":"3.1.3","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"license":"MIT","_id":"loupe@3.1.3","maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"contributors":[{"url":"https://github.com/keithamus","name":"Keith Cirkel"}],"homepage":"https://github.com/chaijs/loupe","bugs":{"url":"https://github.com/chaijs/loupe/issues"},"dist":{"shasum":"042a8f7986d77f3d0f98ef7990a2b2fef18b0fd2","tarball":"http://registry-npm.ywwl.com/loupe/download/loupe-3.1.3.tgz","fileCount":64,"integrity":"sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==","signatures":[{"sig":"MEQCIEmyuvUFqOCRACSZyPX/7jFccpnc3rfJE9UY1kzqXVBFAiBVkXG+uWsC1dJktrYTBk2ZrHJEVarR1vGE25FVKHHy/A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/loupe@3.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":59533,"size":15499,"noattachment":false,"key":"/loupe/-/loupe-3.1.3.tgz"},"main":"./lib/index.js","type":"module","types":"./lib/index.d.ts","module":"./lib/index.js","browser":{"util":false,"./index.js":"./loupe.js"},"gitHead":"6531c62f4503b01c6911f765ff4cb67efd98722f","scripts":{"lint":"eslint .","test":"npm run test:node && npm run test:browser","bench":"node bench","build":"npm run build:lib && npm run build:esm-bundle && npm run build:cjs-bundle","build:lib":"tsc","test:node":"mocha","pretest:node":"npm run build","test:browser":"wtr","pretest:browser":"npx playwright install-deps && npx playwright install && npm run build","upload-coverage":"codecov","build:cjs-bundle":"esbuild --bundle src/index.ts --outfile=loupe.js --format=cjs","build:esm-bundle":"esbuild --bundle src/index.ts --outfile=loupe.js --format=esm","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"prettier":{"semi":false,"useTabs":false,"tabWidth":2,"printWidth":120,"arrowParens":"avoid","singleQuote":true,"trailingComma":"es5","bracketSpacing":true},"repository":{"url":"git+https://github.com/chaijs/loupe.git","type":"git"},"_npmVersion":"10.9.2","description":"Inspect utility for Node.js and browsers","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","chai":"^5.0.0-alpha.0","husky":"^9.1.7","mocha":"^11.1.0","eslint":"^9.19.0","codecov":"^3.8.3","core-js":"^3.8.3","esbuild":"^0.24.2","prettier":"^3.0.0","benchmark":"^2.1.4","cross-env":"^7.0.3","typescript":"^5.0.0-beta","simple-assert":"^2.0.0","@web/test-runner":"^0.19.0","eslint-config-strict":"^14.0.1","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.3","@web/dev-server-esbuild":"^1.0.3","eslint-plugin-filenames":"^1.3.2","@web/test-runner-playwright":"^0.11.0"},"_npmOperationalInternal":{"tmp":"tmp/loupe_3.1.3_1738071861899_0.1295980700109005","host":"s3://npm-registry-packages-npm-production"},"readme":"![npm](https://img.shields.io/npm/v/loupe?logo=npm)\n![Build](https://github.com/chaijs/loupe/workflows/Build/badge.svg?branch=master)\n![Codecov branch](https://img.shields.io/codecov/c/github/chaijs/loupe/master?logo=codecov)\n\n# What is loupe?\n\nLoupe turns the object you give it into a string. It's similar to Node.js' `util.inspect()` function, but it works cross platform, in most modern browsers as well as Node.\n\n## Installation\n\n### Node.js\n\n`loupe` is available on [npm](http://npmjs.org). To install it, type:\n\n    $ npm install loupe\n\n### Browsers\n\nYou can also use it within the browser; install via npm and use the `loupe.js` file found within the download. For example:\n\n```html\n<script src=\"./node_modules/loupe/loupe.js\"></script>\n```\n\n## Usage\n\n``` js\nconst { inspect } = require('loupe');\n```\n\n```js\ninspect({ foo: 'bar' }); // => \"{ foo: 'bar' }\"\ninspect(1); // => '1'\ninspect('foo'); // => \"'foo'\"\ninspect([ 1, 2, 3 ]); // => '[ 1, 2, 3 ]'\ninspect(/Test/g); // => '/Test/g'\n\n// ...\n```\n\n## Tests\n\n```bash\n$ npm test\n```\n\nCoverage:\n\n```bash\n$ npm run upload-coverage\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011-2013 Jake Luer jake@alogicalparadox.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","publish_time":1738071862111,"_cnpm_publish_time":1738071862111,"dist-tags":{"latest":"3.2.1"}}