{"action":"created","issue":{"url":"https://api.github.com/repos/moll/js-must/issues/24","labels_url":"https://api.github.com/repos/moll/js-must/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/moll/js-must/issues/24/comments","events_url":"https://api.github.com/repos/moll/js-must/issues/24/events","html_url":"https://github.com/moll/js-must/issues/24","id":79660941,"number":24,"title":"Make `must` extensible","user":{"login":"JohnnyEstilles","id":5514878,"avatar_url":"https://avatars.githubusercontent.com/u/5514878?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnnyEstilles","html_url":"https://github.com/JohnnyEstilles","followers_url":"https://api.github.com/users/JohnnyEstilles/followers","following_url":"https://api.github.com/users/JohnnyEstilles/following{/other_user}","gists_url":"https://api.github.com/users/JohnnyEstilles/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnnyEstilles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnnyEstilles/subscriptions","organizations_url":"https://api.github.com/users/JohnnyEstilles/orgs","repos_url":"https://api.github.com/users/JohnnyEstilles/repos","events_url":"https://api.github.com/users/JohnnyEstilles/events{/privacy}","received_events_url":"https://api.github.com/users/JohnnyEstilles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-23T00:00:05Z","updated_at":"2015-05-23T13:18:45Z","closed_at":null,"body":"Allow `must` to be extended using community developed assertion/matcher plugins. This would allow for consumers to easily add either their own or community provided matchers, without bloating the `must` core library. We could easily add assertions for promises (see issue #22), Express request/response objects, etc.\r\n\r\nI propose using the typical `.use()` syntax. For example:\r\n\r\n```js\r\nvar must = require(\"must\")\r\nvar mustPromise = require('must-promise')\r\nmust.use(mustPromise);\r\n```\r\n\r\n... or something similar.\r\n"},"comment":{"url":"https://api.github.com/repos/moll/js-must/issues/comments/104894504","html_url":"https://github.com/moll/js-must/issues/24#issuecomment-104894504","issue_url":"https://api.github.com/repos/moll/js-must/issues/24","id":104894504,"user":{"login":"JohnnyEstilles","id":5514878,"avatar_url":"https://avatars.githubusercontent.com/u/5514878?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnnyEstilles","html_url":"https://github.com/JohnnyEstilles","followers_url":"https://api.github.com/users/JohnnyEstilles/followers","following_url":"https://api.github.com/users/JohnnyEstilles/following{/other_user}","gists_url":"https://api.github.com/users/JohnnyEstilles/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnnyEstilles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnnyEstilles/subscriptions","organizations_url":"https://api.github.com/users/JohnnyEstilles/orgs","repos_url":"https://api.github.com/users/JohnnyEstilles/repos","events_url":"https://api.github.com/users/JohnnyEstilles/events{/privacy}","received_events_url":"https://api.github.com/users/JohnnyEstilles/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T13:18:45Z","updated_at":"2015-05-23T13:18:45Z","body":"@moll ... I'm open to either solution.\r\n\r\nI completely agree that `must` would need to expose the existing private [insist()](https://github.com/moll/js-must/blob/d09d3689a409bae8f1b2e8e5b403da0e83607cf0/lib/assertions.js#L995) function, but the [chain()](https://github.com/moll/js-must/blob/d09d3689a409bae8f1b2e8e5b403da0e83607cf0/lib/assertions.js#L1011) function as well.\r\n\r\nWhich ever solution you decide, I'll be glad to pitch in. :-)"}}