{"_id":"es-object-atoms","_rev":"3690202","name":"es-object-atoms","description":"ES Object-related atoms: Object, ToObject, RequireObjectCoercible","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2025-02-13T05:46:50.000Z","created":"2024-03-17T06:19:03.345Z","1.1.1":"2025-01-15T00:42:43.342Z","1.1.0":"2025-01-14T15:40:42.459Z","1.0.1":"2025-01-14T04:12:12.122Z","1.0.0":"2024-03-17T06:19:03.345Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ljharb/es-object-atoms.git"},"versions":{"1.1.1":{"name":"es-object-atoms","version":"1.1.1","description":"ES Object-related atoms: Object, ToObject, RequireObjectCoercible","main":"index.js","exports":{".":"./index.js","./RequireObjectCoercible":"./RequireObjectCoercible.js","./isObject":"./isObject.js","./ToObject":"./ToObject.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","posttest":"npx npm@\">= 10.2\" audit --production","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/ljharb/es-object-atoms.git"},"keywords":["javascript","ecmascript","object","toobject","coercible"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/es-object-atoms/issues"},"homepage":"https://github.com/ljharb/es-object-atoms#readme","dependencies":{"es-errors":"^1.3.0"},"devDependencies":{"@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.3","@types/tape":"^5.8.1","auto-changelog":"^2.5.0","eclint":"^2.8.1","encoding":"^0.1.13","eslint":"^8.8.0","evalmd":"^0.0.19","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"es-object-atoms@1.1.1","gitHead":"fe8db15106acf15abec2e76818d1aa4713293109","types":"./index.d.ts","_nodeVersion":"23.6.0","_npmVersion":"10.9.2","dist":{"shasum":"1c4f2c4837327597ce69d2ca190a7fdd172338c1","size":4658,"noattachment":false,"key":"/es-object-atoms/-/es-object-atoms-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es-object-atoms/download/es-object-atoms-1.1.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/es-object-atoms_1.1.1_1736901763173_0.5406383546222293"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-15T00:42:43.342Z","publish_time":1736901763342,"_source_registry_name":"default","_cnpm_publish_time":1736901763342},"1.1.0":{"name":"es-object-atoms","version":"1.1.0","description":"ES Object-related atoms: Object, ToObject, RequireObjectCoercible","main":"index.js","exports":{".":"./index.js","./RequireObjectCoercible":"./RequireObjectCoercible.js","./isObject":"./isObject.js","./ToObject":"./ToObject.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","posttest":"npx npm@\">= 10.2\" audit --production","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/ljharb/es-object-atoms.git"},"keywords":["javascript","ecmascript","object","toobject","coercible"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/es-object-atoms/issues"},"homepage":"https://github.com/ljharb/es-object-atoms#readme","dependencies":{"es-errors":"^1.3.0"},"devDependencies":{"@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.3","@types/tape":"^5.8.1","auto-changelog":"^2.5.0","eclint":"^2.8.1","encoding":"^0.1.13","eslint":"^8.8.0","evalmd":"^0.0.19","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"es-object-atoms@1.1.0","gitHead":"a59cb4db53204065e7c7eaa96550e180112cb340","types":"./index.d.ts","_nodeVersion":"23.6.0","_npmVersion":"10.9.2","dist":{"shasum":"095de9ecceeb2ca79668212b60ead450ffd323bf","size":4536,"noattachment":false,"key":"/es-object-atoms/-/es-object-atoms-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es-object-atoms/download/es-object-atoms-1.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/es-object-atoms_1.1.0_1736869242300_0.4809070194779097"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-14T15:40:42.459Z","publish_time":1736869242459,"_source_registry_name":"default","_cnpm_publish_time":1736869242459},"1.0.1":{"name":"es-object-atoms","version":"1.0.1","description":"ES Object-related atoms: Object, ToObject, RequireObjectCoercible","main":"index.js","exports":{".":"./index.js","./RequireObjectCoercible":"./RequireObjectCoercible.js","./ToObject":"./ToObject.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","posttest":"npx npm@\">= 10.2\" audit --production","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/ljharb/es-object-atoms.git"},"keywords":["javascript","ecmascript","object","toobject","coercible"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/es-object-atoms/issues"},"homepage":"https://github.com/ljharb/es-object-atoms#readme","dependencies":{"es-errors":"^1.3.0"},"devDependencies":{"@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.3","@types/tape":"^5.8.1","auto-changelog":"^2.5.0","eclint":"^2.8.1","encoding":"^0.1.13","eslint":"^8.8.0","evalmd":"^0.0.19","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"es-object-atoms@1.0.1","gitHead":"1626a072fc23d52a8c8f0add14fd013789c39601","types":"./index.d.ts","_nodeVersion":"23.6.0","_npmVersion":"10.9.2","dist":{"shasum":"ecdf38b6784b194d38065df324300bbf515c73ed","size":4271,"noattachment":false,"key":"/es-object-atoms/-/es-object-atoms-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es-object-atoms/download/es-object-atoms-1.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/es-object-atoms_1.0.1_1736827931880_0.1438068059308797"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-14T04:12:12.122Z","publish_time":1736827932122,"_source_registry_name":"default","_cnpm_publish_time":1736827932122},"1.0.0":{"name":"es-object-atoms","version":"1.0.0","description":"ES Object-related atoms: Object, ToObject, RequireObjectCoercible","main":"index.js","exports":{".":"./index.js","./RequireObjectCoercible":"./RequireObjectCoercible.js","./ToObject":"./ToObject.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","posttest":"aud --production","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/ljharb/es-object-atoms.git"},"keywords":["javascript","ecmascript","object","toobject","coercible"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/es-object-atoms/issues"},"homepage":"https://github.com/ljharb/es-object-atoms#readme","dependencies":{"es-errors":"^1.3.0"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","@ljharb/tsconfig":"^0.2.0","@types/tape":"^5.6.4","aud":"^2.0.4","auto-changelog":"^2.4.0","eclint":"^2.8.1","eslint":"^8.8.0","evalmd":"^0.0.19","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.7.5","typescript":"next"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"es-object-atoms@1.0.0","gitHead":"34cb6da2da31818d011df9837188bd653ebd62bb","types":"./index.d.ts","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"shasum":"ddb55cd47ac2e240701260bc2a8e31ecb643d941","size":3998,"noattachment":false,"key":"/es-object-atoms/-/es-object-atoms-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es-object-atoms/download/es-object-atoms-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es-object-atoms_1.0.0_1710656343176_0.9493742507070562"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-17T06:19:03.345Z","publish_time":1710656343345,"_source_registry_name":"default","_cnpm_publish_time":1710656343345}},"readme":"# es-object-atoms <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nES Object-related atoms: Object, ToObject, RequireObjectCoercible.\n\n## Example\n\n```js\nconst assert = require('assert');\n\nconst $Object = require('es-object-atoms');\nconst isObject = require('es-object-atoms/isObject');\nconst ToObject = require('es-object-atoms/ToObject');\nconst RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');\n\nassert.equal($Object, Object);\nassert.throws(() => ToObject(null), TypeError);\nassert.throws(() => ToObject(undefined), TypeError);\nassert.throws(() => RequireObjectCoercible(null), TypeError);\nassert.throws(() => RequireObjectCoercible(undefined), TypeError);\n\nassert.equal(isObject(undefined), false);\nassert.equal(isObject(null), false);\nassert.equal(isObject({}), true);\nassert.equal(isObject([]), true);\nassert.equal(isObject(function () {}), true);\n\nassert.deepEqual(RequireObjectCoercible(true), true);\nassert.deepEqual(ToObject(true), Object(true));\n\nconst obj = {};\nassert.equal(RequireObjectCoercible(obj), obj);\nassert.equal(ToObject(obj), obj);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n## Security\n\nPlease email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.\n\n[package-url]: https://npmjs.org/package/es-object-atoms\n[npm-version-svg]: https://versionbadg.es/ljharb/es-object-atoms.svg\n[deps-svg]: https://david-dm.org/ljharb/es-object-atoms.svg\n[deps-url]: https://david-dm.org/ljharb/es-object-atoms\n[dev-deps-svg]: https://david-dm.org/ljharb/es-object-atoms/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/es-object-atoms#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/es-object-atoms.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/es-object-atoms.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/es-object.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=es-object-atoms\n[codecov-image]: https://codecov.io/gh/ljharb/es-object-atoms/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/es-object-atoms/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-object-atoms\n[actions-url]: https://github.com/ljharb/es-object-atoms/actions\n","_attachments":{},"homepage":"https://github.com/ljharb/es-object-atoms#readme","bugs":{"url":"https://github.com/ljharb/es-object-atoms/issues"},"license":"MIT"}