UNPKG

mock-match-media

Version:

mock window.matchMedia for tests or node

52 lines (51 loc) 1.45 kB
{ "name": "mock-match-media", "version": "0.4.3", "description": "mock window.matchMedia for tests or node", "source": "src/index.ts", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "require": "./dist/index.js", "import": "./dist/index.mjs", "browser": "./dist/index.mjs" }, "./package.json": "./package.json", "./polyfill": { "require": "./polyfill.js", "import": "./polyfill.mjs" }, "./jest-setup": { "require": "./jest-setup.cjs" } }, "repository": "git@github.com:Ayc0/mock-match-media.git", "author": "Ayc0 <ayc0.benj@gmail.com>", "license": "MIT", "bugs": "https://github.com/Ayc0/mock-match-media/issues", "homepage": "https://github.com/Ayc0/mock-match-media#readme", "keywords": [ "match-media", "mock", "test", "jest", "ssr", "server-side-rendering" ], "scripts": { "build": "rm -rf dist && microbundle --target node -f esm,cjs", "test": "ava", "prepublishOnly": "yarn build" }, "dependencies": { "css-mediaquery": "^0.1.2" }, "devDependencies": { "ava": "^4.0.1", "microbundle": "^0.14.2", "mock-match-media": "link:." } }