{"id":21245259,"url":"https://github.com/jstransformers/jstransformer-myth","last_synced_at":"2025-03-15T04:41:29.902Z","repository":{"id":29794171,"uuid":"33338423","full_name":"jstransformers/jstransformer-myth","owner":"jstransformers","description":"Myth support for JSTransformers.","archived":false,"fork":false,"pushed_at":"2020-04-26T04:19:28.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-06T08:05:13.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npm.im/jstransformer-myth","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/jstransformers.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-03T00:28:53.000Z","updated_at":"2020-04-26T04:19:20.000Z","dependencies_parsed_at":"2022-07-12T16:09:27.570Z","dependency_job_id":null,"html_url":"https://github.com/jstransformers/jstransformer-myth","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-myth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-myth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-myth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-myth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jstransformers","download_url":"https://codeload.github.com/jstransformers/jstransformer-myth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685528,"owners_count":20330980,"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":[],"created_at":"2024-11-21T01:49:39.794Z","updated_at":"2025-03-15T04:41:29.885Z","avatar_url":"https://github.com/jstransformers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jstransformer-myth\n\n[Myth](http://npm.im/myth) support for [JSTransformers](http://github.com/jstransformers).\n\n[![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-myth/master.svg)](https://travis-ci.org/jstransformers/jstransformer-myth)\n[![Coverage Status](https://img.shields.io/codecov/c/github/jstransformers/jstransformer-myth/master.svg)](https://codecov.io/gh/jstransformers/jstransformer-myth)\n[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-myth/master.svg)](http://david-dm.org/jstransformers/jstransformer-myth)\n[![NPM version](https://img.shields.io/npm/v/jstransformer-myth.svg)](https://www.npmjs.org/package/jstransformer-myth)\n\n## Installation\n\n    npm install jstransformer-myth\n\n## API\n\n```js\nvar myth = require('jstransformer')(require('jstransformer-myth'))\nvar opts = {};\n\nmyth.render('pre {\\n  margin: calc(50px * 2);\\n}', opts).body;\n//=\u003e 'pre {\\n  margin: 100px;\\n}'\n\n\nvar promise = myth.renderFileAsync('./path/to/hello.myth', opts);\npromise.then(function(data) {\n  console.log(data.body);\n  //=\u003e 'pre {\\n  margin: 100px;\\n}'\n});\n```\n\n**future.css**\n\n```css\n:root {\n  --purple: #a6c776;\n  --size: 1.2rem;\n}\n\n@custom-media --narrow-window screen and (max-width: 30em);\n\n@media (--narrow-window) {\n  html {\n    font-size: var(--size);\n  }\n}\n\na {\n  color: var(--purple);\n}\n```\n\nwill be transformed to\n\n```css\n@media screen and (max-width: 30em) {\n  html {\n    font-size: 1.2rem;\n  }\n}\n\na {\n  color: #a6c776;\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstransformers%2Fjstransformer-myth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjstransformers%2Fjstransformer-myth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstransformers%2Fjstransformer-myth/lists"}