aurix-ai 0.1.0
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 +329 -0
- package/bin/aurix +172 -0
- package/bin/aurix.cmd +23 -0
- package/dist/agent/AgentLoop.d.ts +52 -0
- package/dist/agent/AgentLoop.d.ts.map +1 -0
- package/dist/agent/AgentLoop.js +543 -0
- package/dist/agent/AgentLoop.js.map +1 -0
- package/dist/agent/AgentsMD.d.ts +8 -0
- package/dist/agent/AgentsMD.d.ts.map +1 -0
- package/dist/agent/AgentsMD.js +53 -0
- package/dist/agent/AgentsMD.js.map +1 -0
- package/dist/agent/CodeReview.d.ts +13 -0
- package/dist/agent/CodeReview.d.ts.map +1 -0
- package/dist/agent/CodeReview.js +134 -0
- package/dist/agent/CodeReview.js.map +1 -0
- package/dist/agent/Config.d.ts +63 -0
- package/dist/agent/Config.d.ts.map +1 -0
- package/dist/agent/Config.js +55 -0
- package/dist/agent/Config.js.map +1 -0
- package/dist/agent/Context.d.ts +4 -0
- package/dist/agent/Context.d.ts.map +1 -0
- package/dist/agent/Context.js +390 -0
- package/dist/agent/Context.js.map +1 -0
- package/dist/agent/ContextManager.d.ts +23 -0
- package/dist/agent/ContextManager.d.ts.map +1 -0
- package/dist/agent/ContextManager.js +163 -0
- package/dist/agent/ContextManager.js.map +1 -0
- package/dist/agent/MemoryEngine.d.ts +24 -0
- package/dist/agent/MemoryEngine.d.ts.map +1 -0
- package/dist/agent/MemoryEngine.js +347 -0
- package/dist/agent/MemoryEngine.js.map +1 -0
- package/dist/agent/MultiAgent.d.ts +22 -0
- package/dist/agent/MultiAgent.d.ts.map +1 -0
- package/dist/agent/MultiAgent.js +466 -0
- package/dist/agent/MultiAgent.js.map +1 -0
- package/dist/agent/ResearchPipeline.d.ts +22 -0
- package/dist/agent/ResearchPipeline.d.ts.map +1 -0
- package/dist/agent/ResearchPipeline.js +195 -0
- package/dist/agent/ResearchPipeline.js.map +1 -0
- package/dist/agent/Setup.d.ts +3 -0
- package/dist/agent/Setup.d.ts.map +1 -0
- package/dist/agent/Setup.js +503 -0
- package/dist/agent/Setup.js.map +1 -0
- package/dist/agent/TokenCounter.d.ts +6 -0
- package/dist/agent/TokenCounter.d.ts.map +1 -0
- package/dist/agent/TokenCounter.js +73 -0
- package/dist/agent/TokenCounter.js.map +1 -0
- package/dist/agent/research/CitationGuardian.d.ts +10 -0
- package/dist/agent/research/CitationGuardian.d.ts.map +1 -0
- package/dist/agent/research/CitationGuardian.js +43 -0
- package/dist/agent/research/CitationGuardian.js.map +1 -0
- package/dist/agent/research/ClaimExtractor.d.ts +7 -0
- package/dist/agent/research/ClaimExtractor.d.ts.map +1 -0
- package/dist/agent/research/ClaimExtractor.js +49 -0
- package/dist/agent/research/ClaimExtractor.js.map +1 -0
- package/dist/agent/research/DebateSystem.d.ts +6 -0
- package/dist/agent/research/DebateSystem.d.ts.map +1 -0
- package/dist/agent/research/DebateSystem.js +33 -0
- package/dist/agent/research/DebateSystem.js.map +1 -0
- package/dist/agent/research/FinalReviewer.d.ts +10 -0
- package/dist/agent/research/FinalReviewer.d.ts.map +1 -0
- package/dist/agent/research/FinalReviewer.js +35 -0
- package/dist/agent/research/FinalReviewer.js.map +1 -0
- package/dist/agent/research/JudgeAgent.d.ts +7 -0
- package/dist/agent/research/JudgeAgent.d.ts.map +1 -0
- package/dist/agent/research/JudgeAgent.js +40 -0
- package/dist/agent/research/JudgeAgent.js.map +1 -0
- package/dist/agent/research/LogicCritic.d.ts +10 -0
- package/dist/agent/research/LogicCritic.d.ts.map +1 -0
- package/dist/agent/research/LogicCritic.js +39 -0
- package/dist/agent/research/LogicCritic.js.map +1 -0
- package/dist/agent/research/PlanningAgent.d.ts +10 -0
- package/dist/agent/research/PlanningAgent.d.ts.map +1 -0
- package/dist/agent/research/PlanningAgent.js +39 -0
- package/dist/agent/research/PlanningAgent.js.map +1 -0
- package/dist/agent/research/RequestAnalyzer.d.ts +14 -0
- package/dist/agent/research/RequestAnalyzer.d.ts.map +1 -0
- package/dist/agent/research/RequestAnalyzer.js +38 -0
- package/dist/agent/research/RequestAnalyzer.js.map +1 -0
- package/dist/agent/research/ResearchAgent.d.ts +12 -0
- package/dist/agent/research/ResearchAgent.d.ts.map +1 -0
- package/dist/agent/research/ResearchAgent.js +64 -0
- package/dist/agent/research/ResearchAgent.js.map +1 -0
- package/dist/agent/research/SkepticAgent.d.ts +9 -0
- package/dist/agent/research/SkepticAgent.d.ts.map +1 -0
- package/dist/agent/research/SkepticAgent.js +38 -0
- package/dist/agent/research/SkepticAgent.js.map +1 -0
- package/dist/agent/research/SupporterAgent.d.ts +9 -0
- package/dist/agent/research/SupporterAgent.d.ts.map +1 -0
- package/dist/agent/research/SupporterAgent.js +31 -0
- package/dist/agent/research/SupporterAgent.js.map +1 -0
- package/dist/agent/research/VideoAgent.d.ts +10 -0
- package/dist/agent/research/VideoAgent.d.ts.map +1 -0
- package/dist/agent/research/VideoAgent.js +49 -0
- package/dist/agent/research/VideoAgent.js.map +1 -0
- package/dist/agent/research/WriterAgent.d.ts +6 -0
- package/dist/agent/research/WriterAgent.d.ts.map +1 -0
- package/dist/agent/research/WriterAgent.js +30 -0
- package/dist/agent/research/WriterAgent.js.map +1 -0
- package/dist/agent/research/index.d.ts +15 -0
- package/dist/agent/research/index.d.ts.map +1 -0
- package/dist/agent/research/index.js +14 -0
- package/dist/agent/research/index.js.map +1 -0
- package/dist/agent/research/types.d.ts +49 -0
- package/dist/agent/research/types.d.ts.map +1 -0
- package/dist/agent/research/types.js +17 -0
- package/dist/agent/research/types.js.map +1 -0
- package/dist/cli/AltScreen.d.ts +3 -0
- package/dist/cli/AltScreen.d.ts.map +1 -0
- package/dist/cli/AltScreen.js +72 -0
- package/dist/cli/AltScreen.js.map +1 -0
- package/dist/cli/App.d.ts +11 -0
- package/dist/cli/App.d.ts.map +1 -0
- package/dist/cli/App.js +1319 -0
- package/dist/cli/App.js.map +1 -0
- package/dist/cli/Banner.d.ts +13 -0
- package/dist/cli/Banner.d.ts.map +1 -0
- package/dist/cli/Banner.js +12 -0
- package/dist/cli/Banner.js.map +1 -0
- package/dist/cli/BlackFill.d.ts +3 -0
- package/dist/cli/BlackFill.d.ts.map +1 -0
- package/dist/cli/BlackFill.js +9 -0
- package/dist/cli/BlackFill.js.map +1 -0
- package/dist/cli/ChatArea.d.ts +20 -0
- package/dist/cli/ChatArea.d.ts.map +1 -0
- package/dist/cli/ChatArea.js +300 -0
- package/dist/cli/ChatArea.js.map +1 -0
- package/dist/cli/ConnectModal.d.ts +9 -0
- package/dist/cli/ConnectModal.d.ts.map +1 -0
- package/dist/cli/ConnectModal.js +101 -0
- package/dist/cli/ConnectModal.js.map +1 -0
- package/dist/cli/FileDiff.d.ts +16 -0
- package/dist/cli/FileDiff.d.ts.map +1 -0
- package/dist/cli/FileDiff.js +45 -0
- package/dist/cli/FileDiff.js.map +1 -0
- package/dist/cli/InputBox.d.ts +18 -0
- package/dist/cli/InputBox.d.ts.map +1 -0
- package/dist/cli/InputBox.js +573 -0
- package/dist/cli/InputBox.js.map +1 -0
- package/dist/cli/LoginModal.d.ts +10 -0
- package/dist/cli/LoginModal.d.ts.map +1 -0
- package/dist/cli/LoginModal.js +129 -0
- package/dist/cli/LoginModal.js.map +1 -0
- package/dist/cli/Menu.d.ts +26 -0
- package/dist/cli/Menu.d.ts.map +1 -0
- package/dist/cli/Menu.js +115 -0
- package/dist/cli/Menu.js.map +1 -0
- package/dist/cli/MouseFilter.d.ts +2 -0
- package/dist/cli/MouseFilter.d.ts.map +1 -0
- package/dist/cli/MouseFilter.js +47 -0
- package/dist/cli/MouseFilter.js.map +1 -0
- package/dist/cli/Panel.d.ts.map +1 -0
- package/dist/cli/Panel.js.map +1 -0
- package/dist/cli/PermissionPrompt.d.ts +9 -0
- package/dist/cli/PermissionPrompt.d.ts.map +1 -0
- package/dist/cli/PermissionPrompt.js +56 -0
- package/dist/cli/PermissionPrompt.js.map +1 -0
- package/dist/cli/SessionPanel.d.ts +15 -0
- package/dist/cli/SessionPanel.d.ts.map +1 -0
- package/dist/cli/SessionPanel.js +28 -0
- package/dist/cli/SessionPanel.js.map +1 -0
- package/dist/cli/SetupUI.d.ts +34 -0
- package/dist/cli/SetupUI.d.ts.map +1 -0
- package/dist/cli/SetupUI.js +311 -0
- package/dist/cli/SetupUI.js.map +1 -0
- package/dist/cli/StatusBar.d.ts +12 -0
- package/dist/cli/StatusBar.d.ts.map +1 -0
- package/dist/cli/StatusBar.js +7 -0
- package/dist/cli/StatusBar.js.map +1 -0
- package/dist/cli/WhatsAppModal.d.ts +10 -0
- package/dist/cli/WhatsAppModal.d.ts.map +1 -0
- package/dist/cli/WhatsAppModal.js +78 -0
- package/dist/cli/WhatsAppModal.js.map +1 -0
- package/dist/cli/animation/useThinking.d.ts +2 -0
- package/dist/cli/animation/useThinking.d.ts.map +1 -0
- package/dist/cli/animation/useThinking.js +50 -0
- package/dist/cli/animation/useThinking.js.map +1 -0
- package/dist/cli/commands.d.ts +26 -0
- package/dist/cli/commands.d.ts.map +1 -0
- package/dist/cli/commands.js +816 -0
- package/dist/cli/commands.js.map +1 -0
- package/dist/cli/theme.d.ts +101 -0
- package/dist/cli/theme.d.ts.map +1 -0
- package/dist/cli/theme.js +222 -0
- package/dist/cli/theme.js.map +1 -0
- package/dist/commands/SlashCommands.d.ts +15 -0
- package/dist/commands/SlashCommands.d.ts.map +1 -0
- package/dist/commands/SlashCommands.js +238 -0
- package/dist/commands/SlashCommands.js.map +1 -0
- package/dist/gateway/Discord.d.ts +13 -0
- package/dist/gateway/Discord.d.ts.map +1 -0
- package/dist/gateway/Discord.js +144 -0
- package/dist/gateway/Discord.js.map +1 -0
- package/dist/gateway/Gateway.d.ts +71 -0
- package/dist/gateway/Gateway.d.ts.map +1 -0
- package/dist/gateway/Gateway.js +665 -0
- package/dist/gateway/Gateway.js.map +1 -0
- package/dist/gateway/Telegram.d.ts +18 -0
- package/dist/gateway/Telegram.d.ts.map +1 -0
- package/dist/gateway/Telegram.js +224 -0
- package/dist/gateway/Telegram.js.map +1 -0
- package/dist/gateway/WASessionStore.d.ts +13 -0
- package/dist/gateway/WASessionStore.d.ts.map +1 -0
- package/dist/gateway/WASessionStore.js +94 -0
- package/dist/gateway/WASessionStore.js.map +1 -0
- package/dist/gateway/WhatsApp.d.ts +19 -0
- package/dist/gateway/WhatsApp.d.ts.map +1 -0
- package/dist/gateway/WhatsApp.js +159 -0
- package/dist/gateway/WhatsApp.js.map +1 -0
- package/dist/gateway-entry.d.ts +3 -0
- package/dist/gateway-entry.d.ts.map +1 -0
- package/dist/gateway-entry.js +50 -0
- package/dist/gateway-entry.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +213 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/index.d.ts +70 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +390 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/skills/SkillRegistry.d.ts +33 -0
- package/dist/skills/SkillRegistry.d.ts.map +1 -0
- package/dist/skills/SkillRegistry.js +102 -0
- package/dist/skills/SkillRegistry.js.map +1 -0
- package/dist/token-counter.linux-x64-gnu.node +0 -0
- package/dist/tools/Backend.d.ts +3 -0
- package/dist/tools/Backend.d.ts.map +1 -0
- package/dist/tools/Backend.js +154 -0
- package/dist/tools/Backend.js.map +1 -0
- package/dist/tools/Blockchain.d.ts +3 -0
- package/dist/tools/Blockchain.d.ts.map +1 -0
- package/dist/tools/Blockchain.js +82 -0
- package/dist/tools/Blockchain.js.map +1 -0
- package/dist/tools/Browser.d.ts +5 -0
- package/dist/tools/Browser.d.ts.map +1 -0
- package/dist/tools/Browser.js +2253 -0
- package/dist/tools/Browser.js.map +1 -0
- package/dist/tools/Cloud.d.ts +3 -0
- package/dist/tools/Cloud.d.ts.map +1 -0
- package/dist/tools/Cloud.js +115 -0
- package/dist/tools/Cloud.js.map +1 -0
- package/dist/tools/CodeExec.d.ts +3 -0
- package/dist/tools/CodeExec.d.ts.map +1 -0
- package/dist/tools/CodeExec.js +76 -0
- package/dist/tools/CodeExec.js.map +1 -0
- package/dist/tools/Cybersec.d.ts +3 -0
- package/dist/tools/Cybersec.d.ts.map +1 -0
- package/dist/tools/Cybersec.js +186 -0
- package/dist/tools/Cybersec.js.map +1 -0
- package/dist/tools/Deploy.d.ts +3 -0
- package/dist/tools/Deploy.d.ts.map +1 -0
- package/dist/tools/Deploy.js +87 -0
- package/dist/tools/Deploy.js.map +1 -0
- package/dist/tools/Diagram.d.ts +3 -0
- package/dist/tools/Diagram.d.ts.map +1 -0
- package/dist/tools/Diagram.js +38 -0
- package/dist/tools/Diagram.js.map +1 -0
- package/dist/tools/Docker.d.ts +3 -0
- package/dist/tools/Docker.d.ts.map +1 -0
- package/dist/tools/Docker.js +45 -0
- package/dist/tools/Docker.js.map +1 -0
- package/dist/tools/Email.d.ts +3 -0
- package/dist/tools/Email.d.ts.map +1 -0
- package/dist/tools/Email.js +172 -0
- package/dist/tools/Email.js.map +1 -0
- package/dist/tools/Excel.d.ts +3 -0
- package/dist/tools/Excel.d.ts.map +1 -0
- package/dist/tools/Excel.js +41 -0
- package/dist/tools/Excel.js.map +1 -0
- package/dist/tools/FileEdit.d.ts +3 -0
- package/dist/tools/FileEdit.d.ts.map +1 -0
- package/dist/tools/FileEdit.js +69 -0
- package/dist/tools/FileEdit.js.map +1 -0
- package/dist/tools/FileOps.d.ts +5 -0
- package/dist/tools/FileOps.d.ts.map +1 -0
- package/dist/tools/FileOps.js +76 -0
- package/dist/tools/FileOps.js.map +1 -0
- package/dist/tools/Frontend.d.ts +3 -0
- package/dist/tools/Frontend.d.ts.map +1 -0
- package/dist/tools/Frontend.js +124 -0
- package/dist/tools/Frontend.js.map +1 -0
- package/dist/tools/GifSearch.d.ts +3 -0
- package/dist/tools/GifSearch.d.ts.map +1 -0
- package/dist/tools/GifSearch.js +36 -0
- package/dist/tools/GifSearch.js.map +1 -0
- package/dist/tools/Github.d.ts +3 -0
- package/dist/tools/Github.d.ts.map +1 -0
- package/dist/tools/Github.js +95 -0
- package/dist/tools/Github.js.map +1 -0
- package/dist/tools/GithubConnect.d.ts +3 -0
- package/dist/tools/GithubConnect.d.ts.map +1 -0
- package/dist/tools/GithubConnect.js +282 -0
- package/dist/tools/GithubConnect.js.map +1 -0
- package/dist/tools/Humanizer.d.ts +3 -0
- package/dist/tools/Humanizer.d.ts.map +1 -0
- package/dist/tools/Humanizer.js +45 -0
- package/dist/tools/Humanizer.js.map +1 -0
- package/dist/tools/Maps.d.ts +3 -0
- package/dist/tools/Maps.d.ts.map +1 -0
- package/dist/tools/Maps.js +51 -0
- package/dist/tools/Maps.js.map +1 -0
- package/dist/tools/McpManage.d.ts +26 -0
- package/dist/tools/McpManage.d.ts.map +1 -0
- package/dist/tools/McpManage.js +229 -0
- package/dist/tools/McpManage.js.map +1 -0
- package/dist/tools/Memory.d.ts +3 -0
- package/dist/tools/Memory.d.ts.map +1 -0
- package/dist/tools/Memory.js +68 -0
- package/dist/tools/Memory.js.map +1 -0
- package/dist/tools/Music.d.ts +3 -0
- package/dist/tools/Music.d.ts.map +1 -0
- package/dist/tools/Music.js +274 -0
- package/dist/tools/Music.js.map +1 -0
- package/dist/tools/Notifier.d.ts +3 -0
- package/dist/tools/Notifier.d.ts.map +1 -0
- package/dist/tools/Notifier.js +31 -0
- package/dist/tools/Notifier.js.map +1 -0
- package/dist/tools/Osint.d.ts +3 -0
- package/dist/tools/Osint.d.ts.map +1 -0
- package/dist/tools/Osint.js +57 -0
- package/dist/tools/Osint.js.map +1 -0
- package/dist/tools/Pdf.d.ts +3 -0
- package/dist/tools/Pdf.d.ts.map +1 -0
- package/dist/tools/Pdf.js +152 -0
- package/dist/tools/Pdf.js.map +1 -0
- package/dist/tools/Planning.d.ts +3 -0
- package/dist/tools/Planning.d.ts.map +1 -0
- package/dist/tools/Planning.js +212 -0
- package/dist/tools/Planning.js.map +1 -0
- package/dist/tools/Pptx.d.ts +3 -0
- package/dist/tools/Pptx.d.ts.map +1 -0
- package/dist/tools/Pptx.js +47 -0
- package/dist/tools/Pptx.js.map +1 -0
- package/dist/tools/Registry.d.ts +39 -0
- package/dist/tools/Registry.d.ts.map +1 -0
- package/dist/tools/Registry.js +151 -0
- package/dist/tools/Registry.js.map +1 -0
- package/dist/tools/Research.d.ts +3 -0
- package/dist/tools/Research.d.ts.map +1 -0
- package/dist/tools/Research.js +126 -0
- package/dist/tools/Research.js.map +1 -0
- package/dist/tools/ResearchForums.d.ts +3 -0
- package/dist/tools/ResearchForums.d.ts.map +1 -0
- package/dist/tools/ResearchForums.js +84 -0
- package/dist/tools/ResearchForums.js.map +1 -0
- package/dist/tools/Scraper.d.ts +3 -0
- package/dist/tools/Scraper.d.ts.map +1 -0
- package/dist/tools/Scraper.js +54 -0
- package/dist/tools/Scraper.js.map +1 -0
- package/dist/tools/SendFile.d.ts +4 -0
- package/dist/tools/SendFile.d.ts.map +1 -0
- package/dist/tools/SendFile.js +71 -0
- package/dist/tools/SendFile.js.map +1 -0
- package/dist/tools/SkillLoader.d.ts +3 -0
- package/dist/tools/SkillLoader.d.ts.map +1 -0
- package/dist/tools/SkillLoader.js +132 -0
- package/dist/tools/SkillLoader.js.map +1 -0
- package/dist/tools/SystemMonitor.d.ts +3 -0
- package/dist/tools/SystemMonitor.d.ts.map +1 -0
- package/dist/tools/SystemMonitor.js +59 -0
- package/dist/tools/SystemMonitor.js.map +1 -0
- package/dist/tools/Terminal.d.ts +3 -0
- package/dist/tools/Terminal.d.ts.map +1 -0
- package/dist/tools/Terminal.js +32 -0
- package/dist/tools/Terminal.js.map +1 -0
- package/dist/tools/Todo.d.ts +3 -0
- package/dist/tools/Todo.d.ts.map +1 -0
- package/dist/tools/Todo.js +87 -0
- package/dist/tools/Todo.js.map +1 -0
- package/dist/tools/Trading.d.ts +3 -0
- package/dist/tools/Trading.d.ts.map +1 -0
- package/dist/tools/Trading.js +277 -0
- package/dist/tools/Trading.js.map +1 -0
- package/dist/tools/Vision.d.ts +3 -0
- package/dist/tools/Vision.d.ts.map +1 -0
- package/dist/tools/Vision.js +99 -0
- package/dist/tools/Vision.js.map +1 -0
- package/dist/tools/Vps.d.ts +3 -0
- package/dist/tools/Vps.d.ts.map +1 -0
- package/dist/tools/Vps.js +178 -0
- package/dist/tools/Vps.js.map +1 -0
- package/dist/tools/WebSearch.d.ts +3 -0
- package/dist/tools/WebSearch.d.ts.map +1 -0
- package/dist/tools/WebSearch.js +115 -0
- package/dist/tools/WebSearch.js.map +1 -0
- package/dist/tools/YouTube.d.ts +3 -0
- package/dist/tools/YouTube.d.ts.map +1 -0
- package/dist/tools/YouTube.js +30 -0
- package/dist/tools/YouTube.js.map +1 -0
- package/dist/utils/ascii-logo.d.ts +9 -0
- package/dist/utils/ascii-logo.d.ts.map +1 -0
- package/dist/utils/ascii-logo.js +34 -0
- package/dist/utils/ascii-logo.js.map +1 -0
- package/dist/utils/base-url.d.ts +9 -0
- package/dist/utils/base-url.d.ts.map +1 -0
- package/dist/utils/base-url.js +58 -0
- package/dist/utils/base-url.js.map +1 -0
- package/native/token-counter/index.d.ts +7 -0
- package/native/token-counter/index.js +316 -0
- package/native/token-counter/node_modules/.package-lock.json +568 -0
- package/native/token-counter/node_modules/2/array.js +25 -0
- package/native/token-counter/node_modules/2/index.js +12 -0
- package/native/token-counter/node_modules/2/iterator.js +13 -0
- package/native/token-counter/node_modules/2/license.txt +21 -0
- package/native/token-counter/node_modules/2/map.js +27 -0
- package/native/token-counter/node_modules/2/number.js +109 -0
- package/native/token-counter/node_modules/2/object.js +23 -0
- package/native/token-counter/node_modules/2/package.json +60 -0
- package/native/token-counter/node_modules/2/readme.md +246 -0
- package/native/token-counter/node_modules/2/string.js +11 -0
- package/native/token-counter/node_modules/2/test.js +520 -0
- package/native/token-counter/node_modules/@lamansky/every/index.js +16 -0
- package/native/token-counter/node_modules/@lamansky/every/license.txt +21 -0
- package/native/token-counter/node_modules/@lamansky/every/package.json +38 -0
- package/native/token-counter/node_modules/@lamansky/every/readme.md +46 -0
- package/native/token-counter/node_modules/@lamansky/flatten/index.js +5 -0
- package/native/token-counter/node_modules/@lamansky/flatten/license.txt +21 -0
- package/native/token-counter/node_modules/@lamansky/flatten/package.json +35 -0
- package/native/token-counter/node_modules/@lamansky/flatten/readme.md +41 -0
- package/native/token-counter/node_modules/@napi-rs/cli/LICENSE +21 -0
- package/native/token-counter/node_modules/@napi-rs/cli/README.md +96 -0
- package/native/token-counter/node_modules/@napi-rs/cli/package.json +65 -0
- package/native/token-counter/node_modules/@napi-rs/cli/scripts/index.js +51371 -0
- package/native/token-counter/node_modules/add-counter/index.js +3 -0
- package/native/token-counter/node_modules/add-counter/license.txt +21 -0
- package/native/token-counter/node_modules/add-counter/package.json +34 -0
- package/native/token-counter/node_modules/add-counter/readme.md +36 -0
- package/native/token-counter/node_modules/array-pad/LICENSE +22 -0
- package/native/token-counter/node_modules/array-pad/README.md +80 -0
- package/native/token-counter/node_modules/array-pad/index.js +30 -0
- package/native/token-counter/node_modules/array-pad/package.json +28 -0
- package/native/token-counter/node_modules/arrify/index.js +8 -0
- package/native/token-counter/node_modules/arrify/license +21 -0
- package/native/token-counter/node_modules/arrify/package.json +33 -0
- package/native/token-counter/node_modules/arrify/readme.md +36 -0
- package/native/token-counter/node_modules/case-insensitive/index.js +72 -0
- package/native/token-counter/node_modules/case-insensitive/license.txt +21 -0
- package/native/token-counter/node_modules/case-insensitive/package.json +39 -0
- package/native/token-counter/node_modules/case-insensitive/readme.md +39 -0
- package/native/token-counter/node_modules/case-insensitive/test.js +114 -0
- package/native/token-counter/node_modules/class-chain/index.js +32 -0
- package/native/token-counter/node_modules/class-chain/license.txt +21 -0
- package/native/token-counter/node_modules/class-chain/package.json +39 -0
- package/native/token-counter/node_modules/class-chain/readme.md +23 -0
- package/native/token-counter/node_modules/class-chain/test.js +77 -0
- package/native/token-counter/node_modules/copy-own/index.js +10 -0
- package/native/token-counter/node_modules/copy-own/license.txt +21 -0
- package/native/token-counter/node_modules/copy-own/package.json +37 -0
- package/native/token-counter/node_modules/copy-own/readme.md +67 -0
- package/native/token-counter/node_modules/def-props/index.js +43 -0
- package/native/token-counter/node_modules/def-props/license.txt +21 -0
- package/native/token-counter/node_modules/def-props/node_modules/is-obj/index.d.ts +22 -0
- package/native/token-counter/node_modules/def-props/node_modules/is-obj/index.js +6 -0
- package/native/token-counter/node_modules/def-props/node_modules/is-obj/license +9 -0
- package/native/token-counter/node_modules/def-props/node_modules/is-obj/package.json +34 -0
- package/native/token-counter/node_modules/def-props/node_modules/is-obj/readme.md +39 -0
- package/native/token-counter/node_modules/def-props/package.json +51 -0
- package/native/token-counter/node_modules/def-props/readme.md +117 -0
- package/native/token-counter/node_modules/empty-iterator/index.js +3 -0
- package/native/token-counter/node_modules/empty-iterator/license.txt +21 -0
- package/native/token-counter/node_modules/empty-iterator/package.json +33 -0
- package/native/token-counter/node_modules/empty-iterator/readme.md +23 -0
- package/native/token-counter/node_modules/enforce-range/index.js +15 -0
- package/native/token-counter/node_modules/enforce-range/license.txt +21 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/array.js +43 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/index.js +10 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/iterator.js +26 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/license.txt +21 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/map.js +47 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/number.js +33 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/object.js +61 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/package.json +41 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/readme.md +210 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/string.js +37 -0
- package/native/token-counter/node_modules/enforce-range/node_modules/2/test.js +413 -0
- package/native/token-counter/node_modules/enforce-range/package.json +36 -0
- package/native/token-counter/node_modules/enforce-range/readme.md +53 -0
- package/native/token-counter/node_modules/english-list/.travis.yml +6 -0
- package/native/token-counter/node_modules/english-list/LICENSE +22 -0
- package/native/token-counter/node_modules/english-list/README.md +44 -0
- package/native/token-counter/node_modules/english-list/index.js +34 -0
- package/native/token-counter/node_modules/english-list/package.json +31 -0
- package/native/token-counter/node_modules/english-list/test.log +6 -0
- package/native/token-counter/node_modules/errate/index.js +19 -0
- package/native/token-counter/node_modules/errate/license.txt +21 -0
- package/native/token-counter/node_modules/errate/package.json +39 -0
- package/native/token-counter/node_modules/errate/readme.md +79 -0
- package/native/token-counter/node_modules/ffn/index.js +9 -0
- package/native/token-counter/node_modules/ffn/license.txt +21 -0
- package/native/token-counter/node_modules/ffn/package.json +34 -0
- package/native/token-counter/node_modules/ffn/readme.md +51 -0
- package/native/token-counter/node_modules/get-own-property/index.js +5 -0
- package/native/token-counter/node_modules/get-own-property/license.txt +21 -0
- package/native/token-counter/node_modules/get-own-property/package.json +31 -0
- package/native/token-counter/node_modules/get-own-property/readme.md +22 -0
- package/native/token-counter/node_modules/has-duplicates/index.js +11 -0
- package/native/token-counter/node_modules/has-duplicates/license.txt +21 -0
- package/native/token-counter/node_modules/has-duplicates/package.json +32 -0
- package/native/token-counter/node_modules/has-duplicates/readme.md +23 -0
- package/native/token-counter/node_modules/has-duplicates/test.js +30 -0
- package/native/token-counter/node_modules/if-else-throw/index.js +8 -0
- package/native/token-counter/node_modules/if-else-throw/license.txt +21 -0
- package/native/token-counter/node_modules/if-else-throw/package.json +37 -0
- package/native/token-counter/node_modules/if-else-throw/readme.md +32 -0
- package/native/token-counter/node_modules/is-array-of-length/index.js +7 -0
- package/native/token-counter/node_modules/is-array-of-length/license.txt +21 -0
- package/native/token-counter/node_modules/is-array-of-length/package.json +42 -0
- package/native/token-counter/node_modules/is-array-of-length/readme.md +41 -0
- package/native/token-counter/node_modules/is-class-of/index.js +7 -0
- package/native/token-counter/node_modules/is-class-of/license.txt +21 -0
- package/native/token-counter/node_modules/is-class-of/package.json +35 -0
- package/native/token-counter/node_modules/is-class-of/readme.md +57 -0
- package/native/token-counter/node_modules/is-global-object/index.js +6 -0
- package/native/token-counter/node_modules/is-global-object/license.txt +21 -0
- package/native/token-counter/node_modules/is-global-object/package.json +34 -0
- package/native/token-counter/node_modules/is-global-object/readme.md +22 -0
- package/native/token-counter/node_modules/is-instance-of/index.js +28 -0
- package/native/token-counter/node_modules/is-instance-of/license.txt +21 -0
- package/native/token-counter/node_modules/is-instance-of/package.json +44 -0
- package/native/token-counter/node_modules/is-instance-of/readme.md +55 -0
- package/native/token-counter/node_modules/is-iterable/index.js +5 -0
- package/native/token-counter/node_modules/is-iterable/license +21 -0
- package/native/token-counter/node_modules/is-iterable/package.json +30 -0
- package/native/token-counter/node_modules/is-iterable/readme.md +23 -0
- package/native/token-counter/node_modules/is-nil/LICENSE +21 -0
- package/native/token-counter/node_modules/is-nil/README.md +47 -0
- package/native/token-counter/node_modules/is-nil/index.js +6 -0
- package/native/token-counter/node_modules/is-nil/package.json +46 -0
- package/native/token-counter/node_modules/is-obj/index.js +5 -0
- package/native/token-counter/node_modules/is-obj/license +21 -0
- package/native/token-counter/node_modules/is-obj/package.json +33 -0
- package/native/token-counter/node_modules/is-obj/readme.md +34 -0
- package/native/token-counter/node_modules/is-object/.eslintignore +1 -0
- package/native/token-counter/node_modules/is-object/.eslintrc +5 -0
- package/native/token-counter/node_modules/is-object/.nycrc +13 -0
- package/native/token-counter/node_modules/is-object/.testem.json +14 -0
- package/native/token-counter/node_modules/is-object/CHANGELOG.md +121 -0
- package/native/token-counter/node_modules/is-object/LICENSE +19 -0
- package/native/token-counter/node_modules/is-object/README.md +48 -0
- package/native/token-counter/node_modules/is-object/index.js +5 -0
- package/native/token-counter/node_modules/is-object/package.json +78 -0
- package/native/token-counter/node_modules/is-object/test/index.js +44 -0
- package/native/token-counter/node_modules/is-plain-object/LICENSE +21 -0
- package/native/token-counter/node_modules/is-plain-object/README.md +104 -0
- package/native/token-counter/node_modules/is-plain-object/index.d.ts +5 -0
- package/native/token-counter/node_modules/is-plain-object/index.js +37 -0
- package/native/token-counter/node_modules/is-plain-object/package.json +79 -0
- package/native/token-counter/node_modules/isobject/LICENSE +21 -0
- package/native/token-counter/node_modules/isobject/README.md +122 -0
- package/native/token-counter/node_modules/isobject/index.d.ts +5 -0
- package/native/token-counter/node_modules/isobject/index.js +12 -0
- package/native/token-counter/node_modules/isobject/package.json +74 -0
- package/native/token-counter/node_modules/lodash.set/LICENSE +47 -0
- package/native/token-counter/node_modules/lodash.set/README.md +18 -0
- package/native/token-counter/node_modules/lodash.set/index.js +990 -0
- package/native/token-counter/node_modules/lodash.set/package.json +17 -0
- package/native/token-counter/node_modules/longest-first/index.js +3 -0
- package/native/token-counter/node_modules/longest-first/license.txt +21 -0
- package/native/token-counter/node_modules/longest-first/package.json +36 -0
- package/native/token-counter/node_modules/longest-first/readme.md +29 -0
- package/native/token-counter/node_modules/m-o/index.js +27 -0
- package/native/token-counter/node_modules/m-o/license.txt +21 -0
- package/native/token-counter/node_modules/m-o/node_modules/new-object/index.js +23 -0
- package/native/token-counter/node_modules/m-o/node_modules/new-object/license.txt +21 -0
- package/native/token-counter/node_modules/m-o/node_modules/new-object/package.json +40 -0
- package/native/token-counter/node_modules/m-o/node_modules/new-object/readme.md +55 -0
- package/native/token-counter/node_modules/m-o/package.json +45 -0
- package/native/token-counter/node_modules/m-o/readme.md +87 -0
- package/native/token-counter/node_modules/map-iter/index.js +6 -0
- package/native/token-counter/node_modules/map-iter/license.txt +21 -0
- package/native/token-counter/node_modules/map-iter/package.json +40 -0
- package/native/token-counter/node_modules/map-iter/readme.md +46 -0
- package/native/token-counter/node_modules/new-object/index.js +5 -0
- package/native/token-counter/node_modules/new-object/license.txt +21 -0
- package/native/token-counter/node_modules/new-object/package.json +49 -0
- package/native/token-counter/node_modules/new-object/readme.md +145 -0
- package/native/token-counter/node_modules/ofn/index.js +22 -0
- package/native/token-counter/node_modules/ofn/license.txt +21 -0
- package/native/token-counter/node_modules/ofn/package.json +40 -0
- package/native/token-counter/node_modules/ofn/readme.md +63 -0
- package/native/token-counter/node_modules/otherwise/index.js +11 -0
- package/native/token-counter/node_modules/otherwise/license.txt +21 -0
- package/native/token-counter/node_modules/otherwise/package.json +38 -0
- package/native/token-counter/node_modules/otherwise/readme.md +29 -0
- package/native/token-counter/node_modules/parser-factory/index.js +138 -0
- package/native/token-counter/node_modules/parser-factory/license.txt +21 -0
- package/native/token-counter/node_modules/parser-factory/node_modules/arrify/index.d.ts +38 -0
- package/native/token-counter/node_modules/parser-factory/node_modules/arrify/index.js +23 -0
- package/native/token-counter/node_modules/parser-factory/node_modules/arrify/license +9 -0
- package/native/token-counter/node_modules/parser-factory/node_modules/arrify/package.json +35 -0
- package/native/token-counter/node_modules/parser-factory/node_modules/arrify/readme.md +39 -0
- package/native/token-counter/node_modules/parser-factory/package.json +38 -0
- package/native/token-counter/node_modules/parser-factory/readme.md +15 -0
- package/native/token-counter/node_modules/pfn/index.js +5 -0
- package/native/token-counter/node_modules/pfn/license.txt +21 -0
- package/native/token-counter/node_modules/pfn/package.json +41 -0
- package/native/token-counter/node_modules/pfn/readme.md +111 -0
- package/native/token-counter/node_modules/pfn/strict.js +8 -0
- package/native/token-counter/node_modules/plainify/index.js +5 -0
- package/native/token-counter/node_modules/plainify/license.txt +21 -0
- package/native/token-counter/node_modules/plainify/package.json +36 -0
- package/native/token-counter/node_modules/plainify/readme.md +47 -0
- package/native/token-counter/node_modules/possible-function/changelog.md +7 -0
- package/native/token-counter/node_modules/possible-function/index.js +43 -0
- package/native/token-counter/node_modules/possible-function/license.txt +21 -0
- package/native/token-counter/node_modules/possible-function/package.json +34 -0
- package/native/token-counter/node_modules/possible-function/readme.md +77 -0
- package/native/token-counter/node_modules/possible-function/test.js +32 -0
- package/native/token-counter/node_modules/qfn/index.js +11 -0
- package/native/token-counter/node_modules/qfn/license.txt +21 -0
- package/native/token-counter/node_modules/qfn/package.json +40 -0
- package/native/token-counter/node_modules/qfn/readme.md +45 -0
- package/native/token-counter/node_modules/roadblock/index.js +3 -0
- package/native/token-counter/node_modules/roadblock/license.txt +21 -0
- package/native/token-counter/node_modules/roadblock/package.json +40 -0
- package/native/token-counter/node_modules/roadblock/readme.md +59 -0
- package/native/token-counter/node_modules/round-to/index.d.ts +56 -0
- package/native/token-counter/node_modules/round-to/index.js +37 -0
- package/native/token-counter/node_modules/round-to/license +9 -0
- package/native/token-counter/node_modules/round-to/package.json +38 -0
- package/native/token-counter/node_modules/round-to/readme.md +71 -0
- package/native/token-counter/node_modules/rtrim-array/index.js +10 -0
- package/native/token-counter/node_modules/rtrim-array/license.txt +21 -0
- package/native/token-counter/node_modules/rtrim-array/package.json +41 -0
- package/native/token-counter/node_modules/rtrim-array/readme.md +75 -0
- package/native/token-counter/node_modules/sbo/index.js +25 -0
- package/native/token-counter/node_modules/sbo/license.txt +21 -0
- package/native/token-counter/node_modules/sbo/package.json +50 -0
- package/native/token-counter/node_modules/sbo/readme.md +105 -0
- package/native/token-counter/node_modules/sorp/index.js +3 -0
- package/native/token-counter/node_modules/sorp/license.txt +21 -0
- package/native/token-counter/node_modules/sorp/package.json +34 -0
- package/native/token-counter/node_modules/sorp/readme.md +25 -0
- package/native/token-counter/node_modules/trim-call/index.js +6 -0
- package/native/token-counter/node_modules/trim-call/license.txt +21 -0
- package/native/token-counter/node_modules/trim-call/package.json +40 -0
- package/native/token-counter/node_modules/trim-call/readme.md +80 -0
- package/native/token-counter/node_modules/type-error/LICENSE +21 -0
- package/native/token-counter/node_modules/type-error/README.md +24 -0
- package/native/token-counter/node_modules/type-error/index.js +35 -0
- package/native/token-counter/node_modules/type-error/package.json +11 -0
- package/native/token-counter/node_modules/vfn/index.js +21 -0
- package/native/token-counter/node_modules/vfn/license.txt +21 -0
- package/native/token-counter/node_modules/vfn/package.json +40 -0
- package/native/token-counter/node_modules/vfn/readme.md +81 -0
- package/native/token-counter/node_modules/wfn/index.js +43 -0
- package/native/token-counter/node_modules/wfn/license.txt +21 -0
- package/native/token-counter/node_modules/wfn/package.json +38 -0
- package/native/token-counter/node_modules/wfn/readme.md +81 -0
- package/native/token-counter/package-lock.json +578 -0
- package/native/token-counter/package.json +21 -0
- package/native/token-counter/token-counter.linux-x64-gnu.node +0 -0
- package/package.json +98 -0
- package/scripts/build.cjs +27 -0
- package/scripts/deploy.sh +29 -0
- package/scripts/music.py +268 -0
- package/scripts/postinstall.mjs +81 -0
- package/scripts/push.sh +5 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "is-obj",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Check if a value is an object",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/is-obj",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=0.10.0"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"obj",
|
|
23
|
+
"object",
|
|
24
|
+
"is",
|
|
25
|
+
"check",
|
|
26
|
+
"test",
|
|
27
|
+
"type"
|
|
28
|
+
],
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"ava": "*",
|
|
31
|
+
"xo": "*"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# is-obj [](https://travis-ci.org/sindresorhus/is-obj)
|
|
2
|
+
|
|
3
|
+
> Check if a value is an object
|
|
4
|
+
|
|
5
|
+
Keep in mind that array, function, regexp, etc, are objects in JavaScript.<br>
|
|
6
|
+
See [`is-plain-obj`](https://github.com/sindresorhus/is-plain-obj) if you want to check for plain objects.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
$ npm install --save is-obj
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
const isObj = require('is-obj');
|
|
20
|
+
|
|
21
|
+
isObj({foo: 'bar'});
|
|
22
|
+
//=> true
|
|
23
|
+
|
|
24
|
+
isObj([1, 2, 3]);
|
|
25
|
+
//=> true
|
|
26
|
+
|
|
27
|
+
isObj('foo');
|
|
28
|
+
//=> false
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
coverage/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"launchers": {
|
|
3
|
+
"node": {
|
|
4
|
+
"command": "node ./test"
|
|
5
|
+
}
|
|
6
|
+
},
|
|
7
|
+
"src_files": [
|
|
8
|
+
"./**/*.js"
|
|
9
|
+
],
|
|
10
|
+
"before_tests": "npm run build",
|
|
11
|
+
"on_exit": "rm test/static/bundle.js",
|
|
12
|
+
"test_page": "test/static/index.html",
|
|
13
|
+
"launch_in_dev": ["node", "phantomjs"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [v1.0.2](https://github.com/inspect-js/is-object/compare/v1.0.1...v1.0.2) - 2020-12-02
|
|
9
|
+
|
|
10
|
+
### Merged
|
|
11
|
+
|
|
12
|
+
- Expanded tests to check for undefined, boolean values, and functions. [`#2`](https://github.com/inspect-js/is-object/pull/2)
|
|
13
|
+
|
|
14
|
+
### Commits
|
|
15
|
+
|
|
16
|
+
- [Tests] migrate tests to Github Actions [`1503b2b`](https://github.com/inspect-js/is-object/commit/1503b2beabea6408504e5ed95aa0c6a69683313f)
|
|
17
|
+
- [Dev Deps] add `eslint`, drop `jscs` [`0b33130`](https://github.com/inspect-js/is-object/commit/0b33130d6d1b77a4c6f184e760a5dd28e65ef105)
|
|
18
|
+
- [meta] add `auto-changelog` [`4c1af71`](https://github.com/inspect-js/is-object/commit/4c1af7108d1498119d8be4014b26f92a6823ae36)
|
|
19
|
+
- Use my standard jscs.json. [`8e02200`](https://github.com/inspect-js/is-object/commit/8e0220046caee3243be8312e563646758f842486)
|
|
20
|
+
- [Tests] use shared travis-ci configs [`ffaa4b7`](https://github.com/inspect-js/is-object/commit/ffaa4b7503e0df857338ce2359de9845af83cd98)
|
|
21
|
+
- Update `tape`, `covert`, `jscs` [`23ae901`](https://github.com/inspect-js/is-object/commit/23ae9016a087da5d433b27228e7d4d066b5f7223)
|
|
22
|
+
- [readme] fix repo URLs, remove testling [`f48732a`](https://github.com/inspect-js/is-object/commit/f48732a6839f9cf70443759d02e4a58cb7d90e53)
|
|
23
|
+
- [meta] avoid publishing github workflows [`b3a84ee`](https://github.com/inspect-js/is-object/commit/b3a84ee7895e212b626b174be6b248d39b591fca)
|
|
24
|
+
- [Tests] run `nyc` on all tests [`a03b699`](https://github.com/inspect-js/is-object/commit/a03b699fdb3b7a78832cfa8005c803f6c455ea11)
|
|
25
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`db89fc0`](https://github.com/inspect-js/is-object/commit/db89fc0fc9b8366130b7e605990f653ae53cf8ff)
|
|
26
|
+
- Update `tape`, `jscs` [`bcb3ac9`](https://github.com/inspect-js/is-object/commit/bcb3ac9f9eedd0bfcc6988f0a0001d4162c7cba3)
|
|
27
|
+
- Expanded tests to check for undefined, boolean values and functions. [`a12751e`](https://github.com/inspect-js/is-object/commit/a12751e6a7050331970e7a82cd961ad18473a6c9)
|
|
28
|
+
- Test up to `io.js` `v2.0` [`74d46d7`](https://github.com/inspect-js/is-object/commit/74d46d7f52c9e227068dbef454c97d9c5a7b2442)
|
|
29
|
+
- [actions] add automatic rebasing / merge commit blocking [`b5505c3`](https://github.com/inspect-js/is-object/commit/b5505c34800a197724ea2bfb4445a13fce5cd934)
|
|
30
|
+
- [actions] add "Allow Edits" workflow [`c79aee4`](https://github.com/inspect-js/is-object/commit/c79aee4d0ecc1aba4be0a1a23d8e19ddf87ca5e4)
|
|
31
|
+
- Naming deps/devDeps URLs in README [`1095633`](https://github.com/inspect-js/is-object/commit/1095633d062deea6300c6e35be6e7142a3dc018d)
|
|
32
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog` [`5db6e17`](https://github.com/inspect-js/is-object/commit/5db6e1783d638c05a539621ae652d32fbc34c6e1)
|
|
33
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`; add `safe-publish-latest` [`ceaf8ab`](https://github.com/inspect-js/is-object/commit/ceaf8ab48b0b8d7e300dce5ad40a5eafbe60df3a)
|
|
34
|
+
- Test up to `io.js` `v2.2` [`cf9f70e`](https://github.com/inspect-js/is-object/commit/cf9f70e623a7e0e78c34d056bdfb99d8d5133b69)
|
|
35
|
+
- Naming contributor URLs in README [`41b759b`](https://github.com/inspect-js/is-object/commit/41b759befa23b1c67bc573699188d8c930fa96f1)
|
|
36
|
+
- Test up to `io.js` `v3.0` [`29cd85b`](https://github.com/inspect-js/is-object/commit/29cd85ba942a33112af94c994c23e27e33f9d4ad)
|
|
37
|
+
- Only apps should have lockfiles [`5510e47`](https://github.com/inspect-js/is-object/commit/5510e47639ccb51f64ab82bd14f75d4b4ee7c625)
|
|
38
|
+
- All grade A-supported `node`/`iojs` versions now ship with an `npm` that understands `^`. [`849b718`](https://github.com/inspect-js/is-object/commit/849b718ed57979757af84e637a3cd24871e61a5d)
|
|
39
|
+
- Run `travis-ci` tests on `iojs` and `0.12`; allow `0.8` failures; speed up builds. [`655c5f7`](https://github.com/inspect-js/is-object/commit/655c5f7cdcb7f925fee00a44905ff018002049b4)
|
|
40
|
+
- Naming npm package URL in README [`af52357`](https://github.com/inspect-js/is-object/commit/af5235703e31bdecf39f663fe647e4ba1132191e)
|
|
41
|
+
- Naming testling-ci URLs in README [`70ab476`](https://github.com/inspect-js/is-object/commit/70ab476401e4122fefc45612ac549b8b791fbb7f)
|
|
42
|
+
- Naming travis-ci URLs in README [`08175df`](https://github.com/inspect-js/is-object/commit/08175dffa933ce93e686ee3e48e05af33e13349a)
|
|
43
|
+
- [Dev Deps] update `auto-changelog`, `tape` [`0f0dde7`](https://github.com/inspect-js/is-object/commit/0f0dde7501e280cc262d4bfe375a98965c21bbd6)
|
|
44
|
+
- [Dev Deps] update `covert`, `tape` [`6148d0e`](https://github.com/inspect-js/is-object/commit/6148d0e857aa4e4f167a5c8892f748b0701caf8b)
|
|
45
|
+
- Update `tape`, `jscs` [`dff288a`](https://github.com/inspect-js/is-object/commit/dff288a20b1382836d100d3caf9df3c80fe6290a)
|
|
46
|
+
- Update `tape`, `jscs` [`ff04f70`](https://github.com/inspect-js/is-object/commit/ff04f70e14a4844f6446df3ed5cc4b44aaa64dc2)
|
|
47
|
+
- Update `jscs` [`75e8791`](https://github.com/inspect-js/is-object/commit/75e879153be96fd7429c1a933b6caffd4d4f3316)
|
|
48
|
+
- Update `jscs`, `tape` [`cc7e221`](https://github.com/inspect-js/is-object/commit/cc7e221724339942d13ba52d6541c633e1a160ca)
|
|
49
|
+
- Update `tape`, `jscs` [`be32959`](https://github.com/inspect-js/is-object/commit/be3295953a66d6f305be9d5c1f003ae0df0d8c95)
|
|
50
|
+
- Use consistent quotes. [`0dedc4b`](https://github.com/inspect-js/is-object/commit/0dedc4b8656063e99b2780b3b989fa404b9242be)
|
|
51
|
+
- Naming npm badge PNG in README [`0376b83`](https://github.com/inspect-js/is-object/commit/0376b835c57c93a4e10d99beb7b5be382266faa7)
|
|
52
|
+
- Naming npm version badge SVG in README [`fe00aab`](https://github.com/inspect-js/is-object/commit/fe00aab6bdc2ff718749f4ab4327d97f4616a382)
|
|
53
|
+
- [readme] remove travis badge [`028ff10`](https://github.com/inspect-js/is-object/commit/028ff106f6862a89adbcf6a0b4acd894f90acdc2)
|
|
54
|
+
- [Tests] add missing `lint` script [`f431139`](https://github.com/inspect-js/is-object/commit/f431139c39b7b3b7cd525994e8ae5402db78792b)
|
|
55
|
+
- [Dev Deps] update `auto-changelog`; add `aud` [`ad0b964`](https://github.com/inspect-js/is-object/commit/ad0b9648c626edfc9bf66f2ec0322b4821940a56)
|
|
56
|
+
- [meta] add `funding` field [`ab362a6`](https://github.com/inspect-js/is-object/commit/ab362a630fd1baef26a990cea3f9873723117e74)
|
|
57
|
+
- [actions] update rebase action to use checkout v2 [`592539d`](https://github.com/inspect-js/is-object/commit/592539d9b5a047d1fb4161a0b0dea091ddee057e)
|
|
58
|
+
- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`f26329d`](https://github.com/inspect-js/is-object/commit/f26329daab3387e947a642d73850e56570b32741)
|
|
59
|
+
- [Tests] only audit prod deps [`58efaae`](https://github.com/inspect-js/is-object/commit/58efaaeecd35df9903df3649e4235f2514a31cd3)
|
|
60
|
+
- Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG. [`120491a`](https://github.com/inspect-js/is-object/commit/120491aefe3c96e235d9da96cd00c6e77fb23819)
|
|
61
|
+
- Update `tape` [`99ccffe`](https://github.com/inspect-js/is-object/commit/99ccffe074de63562c007ebc35e9ed808ce3ec11)
|
|
62
|
+
- Lock covert to v1.0.0. [`9d03921`](https://github.com/inspect-js/is-object/commit/9d039218b89667363910689661fde7c3934e4055)
|
|
63
|
+
- Updating jscs [`a72781e`](https://github.com/inspect-js/is-object/commit/a72781e070f35be6a184418f9d649146bad82035)
|
|
64
|
+
- Updating tape [`31aabd0`](https://github.com/inspect-js/is-object/commit/31aabd0451663cd9495ea06d7aa26a8e51ba0532)
|
|
65
|
+
- Fixing indentation. [`4c3e061`](https://github.com/inspect-js/is-object/commit/4c3e0619d94937a5d9507ced13f97436962a3c8e)
|
|
66
|
+
- Updating jscs [`368053e`](https://github.com/inspect-js/is-object/commit/368053e0f2d8179d9538e91339f7c43d270ec4a0)
|
|
67
|
+
|
|
68
|
+
## [v1.0.1](https://github.com/inspect-js/is-object/compare/v1.0.0...v1.0.1) - 2014-09-02
|
|
69
|
+
|
|
70
|
+
### Commits
|
|
71
|
+
|
|
72
|
+
- Add license and download badges [`be23442`](https://github.com/inspect-js/is-object/commit/be23442865506ac6c93f42c2b6ab9ac64939901c)
|
|
73
|
+
- Updating jscs [`9924028`](https://github.com/inspect-js/is-object/commit/992402874cf123393243f6561b5a27cfdc6de88a)
|
|
74
|
+
- Adding a singular license key to package.json [`3f2bd51`](https://github.com/inspect-js/is-object/commit/3f2bd51596a586b222b2571ad3fb18fde9056ba9)
|
|
75
|
+
- Rename LICENSE file to proper spelling. [`a7cfdbf`](https://github.com/inspect-js/is-object/commit/a7cfdbf8d35835745bcfb5ea84b3a0bcf82a9315)
|
|
76
|
+
|
|
77
|
+
## [v1.0.0](https://github.com/inspect-js/is-object/compare/v0.1.2...v1.0.0) - 2014-08-18
|
|
78
|
+
|
|
79
|
+
### Merged
|
|
80
|
+
|
|
81
|
+
- Updating tape. [`#3`](https://github.com/inspect-js/is-object/pull/3)
|
|
82
|
+
- update dependencies [`#2`](https://github.com/inspect-js/is-object/pull/2)
|
|
83
|
+
- Update tape, test more browsers [`#1`](https://github.com/inspect-js/is-object/pull/1)
|
|
84
|
+
|
|
85
|
+
### Commits
|
|
86
|
+
|
|
87
|
+
- Making indentation consistent. [`aed32ae`](https://github.com/inspect-js/is-object/commit/aed32ae56e9400497f2833fe3cb1e12dde68144e)
|
|
88
|
+
- Removing unused example/build code. [`b894fe1`](https://github.com/inspect-js/is-object/commit/b894fe16e0f95203dab0baf7aacde6210f7528ba)
|
|
89
|
+
- Adding `npm run lint` [`676f803`](https://github.com/inspect-js/is-object/commit/676f8036f4d492b4fffdb26209f038ee7f6fc416)
|
|
90
|
+
- Using single quotes, semicolons, etc. [`96e7760`](https://github.com/inspect-js/is-object/commit/96e7760bc7f40715f43b1217a92cecbf08c68a9a)
|
|
91
|
+
- Updating contributors and repo location. [`836e536`](https://github.com/inspect-js/is-object/commit/836e536d11e1715364bccbf4dc1b60c467363a2b)
|
|
92
|
+
- Updating travis.yml [`7287d63`](https://github.com/inspect-js/is-object/commit/7287d63d359f916bf01fe1a2351d05bbc6f21872)
|
|
93
|
+
- Adding more testling browsers. [`8d1447b`](https://github.com/inspect-js/is-object/commit/8d1447bb2ece7a316a49df911d4345df6056dfa7)
|
|
94
|
+
- Updating Travis so it tests on node 0.10, not node 0.1. Also adding node 0.6 and removing unstable 0.9. [`0d773cd`](https://github.com/inspect-js/is-object/commit/0d773cd0d4592122e6d56b40ac7b2378a2cada24)
|
|
95
|
+
- Updating README examples [`57a796b`](https://github.com/inspect-js/is-object/commit/57a796b7dd23e02e03efcf14e2eefb5ec92de48b)
|
|
96
|
+
- Adding `npm run coverage` and `npm run coverage-quiet` [`228bb1b`](https://github.com/inspect-js/is-object/commit/228bb1ba10df7d560d8f1a37156708856c780acb)
|
|
97
|
+
- Use SVG instead of PNG for badges. [`c9c35fa`](https://github.com/inspect-js/is-object/commit/c9c35fac9a235762fe13408f0d4cd5637d4c4317)
|
|
98
|
+
- Add dev dependency badge. [`ef78c97`](https://github.com/inspect-js/is-object/commit/ef78c97ee90a1ddffcf197705dcae15f792478ac)
|
|
99
|
+
- Adding the npm module version. [`48ddbd5`](https://github.com/inspect-js/is-object/commit/48ddbd54d24b8d8ff8e073a0b890a76905f100a1)
|
|
100
|
+
- Updating tape and testem [`adb2d36`](https://github.com/inspect-js/is-object/commit/adb2d369a97953b4570fc2cd9ec4f5cdebd049da)
|
|
101
|
+
- Adding npm badge. [`35d55a8`](https://github.com/inspect-js/is-object/commit/35d55a8b2377a640734a0895eaa7d1502f4a48a7)
|
|
102
|
+
- Run linter as part of tests [`d9a416b`](https://github.com/inspect-js/is-object/commit/d9a416bef698bf2767c821e9891624194f6d2d86)
|
|
103
|
+
- Americanize spellings. [`c644aca`](https://github.com/inspect-js/is-object/commit/c644aca26f525b5d84431b447bf03132a014b7a0)
|
|
104
|
+
- Run code coverage as part of tests. [`8fa74b3`](https://github.com/inspect-js/is-object/commit/8fa74b32c5ba2c350858d81403968445701ab56e)
|
|
105
|
+
- Updating covert [`2c59d40`](https://github.com/inspect-js/is-object/commit/2c59d401a85493cdd6e1a3b34e7bd8f583664021)
|
|
106
|
+
- Updating `tape` [`e65b0d3`](https://github.com/inspect-js/is-object/commit/e65b0d35f7ff9bbaba32a9ce06b69782101a3477)
|
|
107
|
+
- `npm test` should be simple :-) [`df503c0`](https://github.com/inspect-js/is-object/commit/df503c0271665204cb4c42d573c2e5f7dfa78012)
|
|
108
|
+
- make travis run 0.10 [`3a198b9`](https://github.com/inspect-js/is-object/commit/3a198b92b9a169a385a6350db21e62b3a6b9f99f)
|
|
109
|
+
- travis should run node ./test [`33abb28`](https://github.com/inspect-js/is-object/commit/33abb286b229f2eb9576e2d2d64330ff2b337b7f)
|
|
110
|
+
|
|
111
|
+
## [v0.1.2](https://github.com/inspect-js/is-object/compare/v0.1.1...v0.1.2) - 2013-03-12
|
|
112
|
+
|
|
113
|
+
### Commits
|
|
114
|
+
|
|
115
|
+
- not private -.- [`b1ef3b8`](https://github.com/inspect-js/is-object/commit/b1ef3b83dc8cf4ad64484f5f6faa59897633ff9d)
|
|
116
|
+
|
|
117
|
+
## v0.1.1 - 2013-03-12
|
|
118
|
+
|
|
119
|
+
### Commits
|
|
120
|
+
|
|
121
|
+
- initial [`e62f915`](https://github.com/inspect-js/is-object/commit/e62f91558d2dabf271a100e91eae6c6204cd4641)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2013 Colingo.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# is-object <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>
|
|
2
|
+
|
|
3
|
+
[![dependency status][deps-svg]][deps-url]
|
|
4
|
+
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
|
5
|
+
[![License][license-image]][license-url]
|
|
6
|
+
[![Downloads][downloads-image]][downloads-url]
|
|
7
|
+
|
|
8
|
+
[![npm badge][npm-badge-png]][npm-url]
|
|
9
|
+
|
|
10
|
+
Checks whether a value is an object
|
|
11
|
+
|
|
12
|
+
Because `typeof null` is a troll.
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
var isObject = require('is-object');
|
|
18
|
+
var assert = require('assert');
|
|
19
|
+
|
|
20
|
+
assert.equal(isObject(null), false);
|
|
21
|
+
assert.equal(isObject({}), true);
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
`npm install is-object`
|
|
27
|
+
|
|
28
|
+
## Contributors
|
|
29
|
+
|
|
30
|
+
- [Raynos][raynos-github]
|
|
31
|
+
- [Jordan Harband][ljharb-github]
|
|
32
|
+
|
|
33
|
+
## MIT Licensed
|
|
34
|
+
|
|
35
|
+
[deps-svg]: http://david-dm.org/inspect-js/is-object/status.svg
|
|
36
|
+
[deps-url]: http://david-dm.org/inspect-js/is-object
|
|
37
|
+
[raynos-github]: https://github.com/Raynos
|
|
38
|
+
[ljharb-github]: https://github.com/ljharb
|
|
39
|
+
[dev-deps-svg]: https://david-dm.org/inspect-js/is-object/dev-status.svg
|
|
40
|
+
[dev-deps-url]: https://david-dm.org/inspect-js/is-object#info=devDependencies
|
|
41
|
+
[npm-url]: https://npmjs.org/package/is-object
|
|
42
|
+
[npm-version-svg]: http://versionbadg.es/inspect-js/is-object.svg
|
|
43
|
+
[npm-badge-png]: https://nodei.co/npm/is-object.png?downloads=true&stars=true
|
|
44
|
+
[license-image]: http://img.shields.io/npm/l/is-object.svg
|
|
45
|
+
[license-url]: LICENSE
|
|
46
|
+
[downloads-image]: http://img.shields.io/npm/dm/is-object.svg
|
|
47
|
+
[downloads-url]: http://npm-stat.com/charts.html?package=is-object
|
|
48
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "is-object",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Checks whether a value is an object",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "Raynos <raynos2@gmail.com>",
|
|
7
|
+
"funding": {
|
|
8
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
9
|
+
},
|
|
10
|
+
"repository": "git://github.com/inspect-js/is-object.git",
|
|
11
|
+
"main": "index",
|
|
12
|
+
"homepage": "https://github.com/inspect-js/is-object",
|
|
13
|
+
"contributors": [
|
|
14
|
+
{
|
|
15
|
+
"name": "Raynos"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Jordan Harband",
|
|
19
|
+
"url": "https://github.com/ljharb"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/inspect-js/is-object/issues",
|
|
24
|
+
"email": "ljharb@gmail.com"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@ljharb/eslint-config": "^17.3.0",
|
|
29
|
+
"aud": "^1.1.3",
|
|
30
|
+
"auto-changelog": "^2.2.1",
|
|
31
|
+
"eslint": "^7.14.0",
|
|
32
|
+
"nyc": "^10.3.2",
|
|
33
|
+
"safe-publish-latest": "^1.1.4",
|
|
34
|
+
"tape": "^5.0.1"
|
|
35
|
+
},
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"licenses": [
|
|
38
|
+
{
|
|
39
|
+
"type": "MIT",
|
|
40
|
+
"url": "http://github.com/inspect-js/is-object/raw/master/LICENSE"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"prepublish": "safe-publish-latest",
|
|
45
|
+
"pretest": "npm run lint",
|
|
46
|
+
"lint": "eslint --ext=.js,.mjs .",
|
|
47
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
48
|
+
"test": "npm run tests-only",
|
|
49
|
+
"posttest": "aud --production",
|
|
50
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
51
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
52
|
+
},
|
|
53
|
+
"testling": {
|
|
54
|
+
"files": "test/index.js",
|
|
55
|
+
"browsers": [
|
|
56
|
+
"ie/6..latest",
|
|
57
|
+
"firefox/3..6",
|
|
58
|
+
"firefox/16..latest",
|
|
59
|
+
"firefox/nightly",
|
|
60
|
+
"chrome/22..latest",
|
|
61
|
+
"chrome/canary",
|
|
62
|
+
"opera/10.0",
|
|
63
|
+
"opera/11..latest",
|
|
64
|
+
"opera/next",
|
|
65
|
+
"safari/4..latest",
|
|
66
|
+
"ipad/6.0..latest",
|
|
67
|
+
"iphone/6.0..latest"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"auto-changelog": {
|
|
71
|
+
"output": "CHANGELOG.md",
|
|
72
|
+
"template": "keepachangelog",
|
|
73
|
+
"unreleased": false,
|
|
74
|
+
"commitLimit": false,
|
|
75
|
+
"backfillLimit": false,
|
|
76
|
+
"hideCredit": true
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
var isObject = require('../index');
|
|
6
|
+
|
|
7
|
+
test('returns true for objects', function (assert) {
|
|
8
|
+
assert.equal(isObject({}), true);
|
|
9
|
+
assert.equal(isObject([]), true);
|
|
10
|
+
|
|
11
|
+
assert.end();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
test('returns false for null', function (assert) {
|
|
15
|
+
assert.equal(isObject(null), false);
|
|
16
|
+
|
|
17
|
+
assert.end();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test('returns false for undefined', function (assert) {
|
|
21
|
+
assert.equal(isObject(undefined), false);
|
|
22
|
+
|
|
23
|
+
assert.end();
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test('returns false for booleans', function (assert) {
|
|
27
|
+
assert.equal(isObject(true), false);
|
|
28
|
+
assert.equal(isObject(false), false);
|
|
29
|
+
|
|
30
|
+
assert.end();
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
test('returns false for primitives', function (assert) {
|
|
34
|
+
assert.equal(isObject(42), false);
|
|
35
|
+
assert.equal(isObject('foo'), false);
|
|
36
|
+
|
|
37
|
+
assert.end();
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
test('returns false for functions', function (assert) {
|
|
41
|
+
assert.equal(isObject(function () {}), false);
|
|
42
|
+
|
|
43
|
+
assert.end();
|
|
44
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2017, Jon Schlinkert.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# is-plain-object [](https://www.npmjs.com/package/is-plain-object) [](https://npmjs.org/package/is-plain-object) [](https://npmjs.org/package/is-plain-object) [](https://travis-ci.org/jonschlinkert/is-plain-object)
|
|
2
|
+
|
|
3
|
+
> Returns true if an object was created by the `Object` constructor.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Install with [npm](https://www.npmjs.com/):
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
$ npm install --save is-plain-object
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Use [isobject](https://github.com/jonschlinkert/isobject) if you only want to check if the value is an object and not an array or null.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
var isPlainObject = require('is-plain-object');
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**true** when created by the `Object` constructor.
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
isPlainObject(Object.create({}));
|
|
25
|
+
//=> true
|
|
26
|
+
isPlainObject(Object.create(Object.prototype));
|
|
27
|
+
//=> true
|
|
28
|
+
isPlainObject({foo: 'bar'});
|
|
29
|
+
//=> true
|
|
30
|
+
isPlainObject({});
|
|
31
|
+
//=> true
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**false** when not created by the `Object` constructor.
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
isPlainObject(1);
|
|
38
|
+
//=> false
|
|
39
|
+
isPlainObject(['foo', 'bar']);
|
|
40
|
+
//=> false
|
|
41
|
+
isPlainObject([]);
|
|
42
|
+
//=> false
|
|
43
|
+
isPlainObject(new Foo);
|
|
44
|
+
//=> false
|
|
45
|
+
isPlainObject(null);
|
|
46
|
+
//=> false
|
|
47
|
+
isPlainObject(Object.create(null));
|
|
48
|
+
//=> false
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## About
|
|
52
|
+
|
|
53
|
+
### Related projects
|
|
54
|
+
|
|
55
|
+
* [is-number](https://www.npmjs.com/package/is-number): Returns true if the value is a number. comprehensive tests. | [homepage](https://github.com/jonschlinkert/is-number "Returns true if the value is a number. comprehensive tests.")
|
|
56
|
+
* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.")
|
|
57
|
+
* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.")
|
|
58
|
+
|
|
59
|
+
### Contributing
|
|
60
|
+
|
|
61
|
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
|
62
|
+
|
|
63
|
+
### Contributors
|
|
64
|
+
|
|
65
|
+
| **Commits** | **Contributor** |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| 17 | [jonschlinkert](https://github.com/jonschlinkert) |
|
|
68
|
+
| 6 | [stevenvachon](https://github.com/stevenvachon) |
|
|
69
|
+
| 3 | [onokumus](https://github.com/onokumus) |
|
|
70
|
+
| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |
|
|
71
|
+
|
|
72
|
+
### Building docs
|
|
73
|
+
|
|
74
|
+
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
|
75
|
+
|
|
76
|
+
To generate the readme, run the following command:
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Running tests
|
|
83
|
+
|
|
84
|
+
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
$ npm install && npm test
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Author
|
|
91
|
+
|
|
92
|
+
**Jon Schlinkert**
|
|
93
|
+
|
|
94
|
+
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
|
95
|
+
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
|
|
96
|
+
|
|
97
|
+
### License
|
|
98
|
+
|
|
99
|
+
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
|
|
100
|
+
Released under the [MIT License](LICENSE).
|
|
101
|
+
|
|
102
|
+
***
|
|
103
|
+
|
|
104
|
+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 11, 2017._
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
var isObject = require('isobject');
|
|
11
|
+
|
|
12
|
+
function isObjectObject(o) {
|
|
13
|
+
return isObject(o) === true
|
|
14
|
+
&& Object.prototype.toString.call(o) === '[object Object]';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
module.exports = function isPlainObject(o) {
|
|
18
|
+
var ctor,prot;
|
|
19
|
+
|
|
20
|
+
if (isObjectObject(o) === false) return false;
|
|
21
|
+
|
|
22
|
+
// If has modified constructor
|
|
23
|
+
ctor = o.constructor;
|
|
24
|
+
if (typeof ctor !== 'function') return false;
|
|
25
|
+
|
|
26
|
+
// If has modified prototype
|
|
27
|
+
prot = ctor.prototype;
|
|
28
|
+
if (isObjectObject(prot) === false) return false;
|
|
29
|
+
|
|
30
|
+
// If constructor does not have an Object-specific method
|
|
31
|
+
if (prot.hasOwnProperty('isPrototypeOf') === false) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Most likely a plain Object
|
|
36
|
+
return true;
|
|
37
|
+
};
|