{"id":22327186,"url":"https://github.com/getninjas/dhalsim-js","last_synced_at":"2025-07-29T17:34:13.795Z","repository":{"id":40957162,"uuid":"124275985","full_name":"getninjas/dhalsim-js","owner":"getninjas","description":"Dhalsim is a media query for javascript","archived":false,"fork":false,"pushed_at":"2023-01-04T21:36:29.000Z","size":3288,"stargazers_count":16,"open_issues_count":19,"forks_count":0,"subscribers_count":37,"default_branch":"master","last_synced_at":"2024-11-09T20:35:35.370Z","etag":null,"topics":["es6","javascript-library","media-queries","responsive"],"latest_commit_sha":null,"homepage":"https://getninjas.github.io/dhalsim-js","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/getninjas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-07T18:15:46.000Z","updated_at":"2023-08-15T17:29:01.000Z","dependencies_parsed_at":"2023-02-02T20:45:57.567Z","dependency_job_id":null,"html_url":"https://github.com/getninjas/dhalsim-js","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getninjas%2Fdhalsim-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getninjas%2Fdhalsim-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getninjas%2Fdhalsim-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getninjas%2Fdhalsim-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getninjas","download_url":"https://codeload.github.com/getninjas/dhalsim-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228035005,"owners_count":17859245,"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":["es6","javascript-library","media-queries","responsive"],"created_at":"2024-12-04T03:08:40.780Z","updated_at":"2024-12-04T03:08:41.512Z","avatar_url":"https://github.com/getninjas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dhalsim\n[![Build Status](https://travis-ci.org/getninjas/dhalsim-js.svg?branch=master)](https://travis-ci.org/getninjas/dhalsim-js)\n[![Maintainability](https://api.codeclimate.com/v1/badges/56d8af4515d3676174d1/maintainability)](https://codeclimate.com/github/getninjas/dhalsim-js/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/56d8af4515d3676174d1/test_coverage)](https://codeclimate.com/github/getninjas/dhalsim-js/test_coverage)\n\nHelper to check a media query on JS\n* This script appends has methods to check the size of screen.\n\n### Documentation\n\nSee live here [https://getninjas.github.io/dhalsim-js/](https://getninjas.github.io/dhalsim-js/)\n\n### Install\n\n`npm i dhalsim-js --save`\n\n`yarn add dhalsim-js`\n\n### Demo\n\n`npm run demo`\n\n`yarn demo`\n\n### Build\n\n`npm run build`\n\n`yarn build`\n\n\n### Usage\n\nYou can use it via:\n* GLOBAL variable\n* CommonJs\n* AMD\n* ES6 Module\n\n#### To init module\n* init();\n\n#### Methods\n* isMobile();\n* isTablet();\n* isDesktop();\n* isWide();\n* beyondTablet();\n* beyondMobile();\n\n### Release process\nWe are using `npm version` to generate our releases. There are 3 kind of releases generally used: major, minor and patch. See the http://semver.org/ for more details.\n\nThe process is:\n\n1. After merge PR on master:\n\n  1.1 `git checkout master`;\n\n  1.2 `git pull --tags origin master`;\n\n2. run `npm version major|minor|patch -m \"Message of your changes\"` (important: you need to be an admin to push on master);\n\n3. Now let's publish the package on npm. You need to run `npm adduser` and have the credentials to do this;\n\n  3.1 If nothing fails on `npm version` and you have the credentials of npm GetNinjas account, run `npm publish`.\n\n4. Done! Now, you can install the package on any project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetninjas%2Fdhalsim-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetninjas%2Fdhalsim-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetninjas%2Fdhalsim-js/lists"}