{"id":22385725,"url":"https://github.com/eteplus/typeof","last_synced_at":"2025-07-31T05:30:57.742Z","repository":{"id":57169736,"uuid":"127717950","full_name":"eteplus/typeof","owner":"eteplus","description":"The typeOf method returns a string indicating the type of the value","archived":false,"fork":false,"pushed_at":"2018-04-03T03:06:57.000Z","size":74,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-01T12:41:39.711Z","etag":null,"topics":["javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eteplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-02T07:02:01.000Z","updated_at":"2021-10-10T16:44:20.000Z","dependencies_parsed_at":"2022-09-11T02:31:28.721Z","dependency_job_id":null,"html_url":"https://github.com/eteplus/typeof","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eteplus%2Ftypeof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eteplus%2Ftypeof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eteplus%2Ftypeof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eteplus%2Ftypeof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eteplus","download_url":"https://codeload.github.com/eteplus/typeof/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228217534,"owners_count":17886769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","nodejs"],"created_at":"2024-12-05T01:27:07.520Z","updated_at":"2024-12-05T01:27:08.233Z","avatar_url":"https://github.com/eteplus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typeof\n\n[![Build Status](https://travis-ci.org/eteplus/typeof.svg?branch=master)](https://travis-ci.org/eteplus/typeof) [![Coverage Status](https://coveralls.io/repos/github/eteplus/typeof/badge.svg?branch=master)](https://coveralls.io/github/eteplus/typeof?branch=master) [![NPM Version](https://img.shields.io/npm/v/@eteplus/typeof.svg)](https://www.npmjs.com/package/@eteplus/typeof) [![NPM Download](https://img.shields.io/npm/dm/@eteplus/typeof.svg)](https://www.npmjs.com/package/@eteplus/typeof) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![LICENSE](https://img.shields.io/npm/l/@eteplus/typeof.svg)](https://github.com/eteplus/typeof/blob/master/LICENSE)\n\n\u003e The `typeOf` method returns a string indicating the type of the value\n\n## Install\n\n```bash\n$ npm install @eteplus/typeof\n```\n\n## Usage\n\n\u003e Support `Node` and `Browser`\n\n```js\nconst typeOf = require('@eteplus/typeof')\n\ntypeOf() // =\u003e 'Undefined'\n\ntypeOf('🌟') // =\u003e 'String'\n\ntypeOf(+'a') // =\u003e 'NaN'\n\ntypeOf(new WeakMap()) // =\u003e 'WeakMap'\n```\n\n```html\n\u003cscript src=\"dist/typeof.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var type = typeOf('🌟')\n  console.log(type) // =\u003e 'String'\n\u003c/script\u003e\n```\n\n## API\n\n### typeOf(value)\n\nReturns the type of value\n\nTypes:\n\n  - Null\n  - Undefined\n  - NaN\n  - Arguments\n  - Number\n  - String\n  - Array\n  - Object\n  - Date\n  - Boolean\n  - Symbol\n  - Map\n  - WeakMap\n  - Set\n  - WeakSet\n  - Function\n  - RegExp\n  - Promise\n  - Error\n  - ArrayBuffer\n  - DataView\n  - Int8Array\n  - Uint8Array\n  - Uint8ClampedArray\n  - Int16Array\n  - Uint16Array\n  - Int32Array\n  - Uint32Array\n  - Float32Array\n  - Float64Array\n\n## Author\n\n**typeOf** © [ETEPLUS](https://github.com/eteplus), Released under the [MIT](https://github.com/eteplus/typeof/blob/master/LICENSE) License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feteplus%2Ftypeof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feteplus%2Ftypeof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feteplus%2Ftypeof/lists"}