{"_id":"@blakedarlin/sass-json-importer","_rev":"6-54d3ca9384c4d6490850232c756598c1","name":"@blakedarlin/sass-json-importer","dist-tags":{"latest":"1.2.5"},"versions":{"1.1.0":{"name":"@blakedarlin/sass-json-importer","version":"1.1.0","keywords":["sass","sass-embedded","importer","json","wordpress"],"author":{"url":"https://blakedarlin.com","name":"Blake Darlin","email":"hello@blakedarlin.com"},"license":"MIT","_id":"@blakedarlin/sass-json-importer@1.1.0","maintainers":[{"name":"blakedarlin","email":"hello@blakedarlin.com"}],"homepage":"https://github.com/blakedarlin/sass-json-importer#readme","bugs":{"url":"https://github.com/blakedarlin/sass-json-importer/issues"},"dist":{"shasum":"c0621cce68f125a9b3ba5707b2d0fb8355b3df9d","tarball":"https://registry.npmjs.org/@blakedarlin/sass-json-importer/-/sass-json-importer-1.1.0.tgz","fileCount":7,"integrity":"sha512-CCxjHRcs80zhSIaM4/45BRn7kGF90jv4mpnne2xm6d+1sDIvU6eTg1oBkfSUtNtjh97CuAdeVQOhVDsIWs6MhA==","signatures":[{"sig":"MEQCIFiVIYISzzEE7PYEsyVCgGKWqNV/tOyLl0+njJDYPUYEAiBwBAA/faR1BOeUYFi6bV+dpHHXMQpF2ZDMB4GKkuwp9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11750},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"31d4e79c2ef0cac7f6b740cbdd708375c1c2f3c1","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --watchAll --config ./jest.config.js","build":"tsc -p tsconfig.build.json","watch":"tsc -p tsconfig.build.json -watch","format":"prettier --write \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","coverage":"NODE_OPTIONS=--experimental-vm-modules npx jest --config ./jest.config.js --coverage","format:check":"prettier --check \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","prepublishOnly":"npm run build"},"_npmUser":{"name":"blakedarlin","email":"hello@blakedarlin.com"},"repository":{"url":"git+https://github.com/blakedarlin/sass-json-importer.git","type":"git"},"_npmVersion":"10.8.2","description":"Allows importing JSON in Sass files parsed by sass/sass-embedded, with added support for WordPress.","directories":{},"_nodeVersion":"20.17.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.11.1","globals":"^15.9.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","prettier":"^3.3.3","@swc/core":"1.7.26","@swc/jest":"^0.2.36","@eslint/js":"^9.11.1","typescript":"^5.6.2","@jest/types":"^29.6.3","@types/jest":"^29.5.13","@types/node":"^22.7.4","@types/eslint":"^9.6.1","sass-embedded":"^1.79.4","@tsconfig/node20":"^20.1.4","ts-jest-resolver":"^2.0.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.7.0","eslint-plugin-jest":"^28.8.3","eslint-plugin-unicorn":"^55.0.0","eslint-config-prettier":"^9.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sass-json-importer_1.1.0_1727724870954_0.38652990999734893","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@blakedarlin/sass-json-importer","version":"1.2.0","keywords":["sass","sass-embedded","importer","json","wordpress"],"author":{"url":"https://blakedarlin.com","name":"Blake Darlin","email":"hello@blakedarlin.com"},"license":"MIT","_id":"@blakedarlin/sass-json-importer@1.2.0","maintainers":[{"name":"blakedarlin","email":"hello@blakedarlin.com"}],"homepage":"https://github.com/blakedarlin/sass-json-importer#readme","bugs":{"url":"https://github.com/blakedarlin/sass-json-importer/issues"},"dist":{"shasum":"bf2fbe29b27367d3cdb77254dbde2dbd5e20fa7b","tarball":"https://registry.npmjs.org/@blakedarlin/sass-json-importer/-/sass-json-importer-1.2.0.tgz","fileCount":7,"integrity":"sha512-Ad9a0jbZcX3gAPK/njm7u1VHqJHS4e9zMYdoxECQ/5TUEtaF2awXuImCc/2/te5v5EBMdlhE6XEnCu2La7rAoQ==","signatures":[{"sig":"MEUCIDzrnbKDh7WUhh4mHDqxMULBLHDG2RLzkaR7Vwfmv/zVAiEApfMcw0CA5W7vmVnDW6iO/4iiu1BgH91/YlzCr6yld24=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12595},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"7e16c039a044fc536807c2ae81eee94a1fe0f698","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --watchAll --config ./jest.config.js","build":"tsc -p tsconfig.build.json","watch":"tsc -p tsconfig.build.json -watch","format":"prettier --write \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","coverage":"NODE_OPTIONS=--experimental-vm-modules npx jest --config ./jest.config.js --coverage","format:check":"prettier --check \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","prepublishOnly":"npm run build"},"_npmUser":{"name":"blakedarlin","email":"hello@blakedarlin.com"},"repository":{"url":"git+https://github.com/blakedarlin/sass-json-importer.git","type":"git"},"_npmVersion":"11.5.1","description":"Allows importing JSON in Sass files parsed by sass/sass-embedded, with added support for WordPress.","directories":{},"_nodeVersion":"24.6.0","dependencies":{"tiny-jsonc":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.11.1","globals":"^15.9.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","prettier":"^3.3.3","@swc/core":"1.7.26","@swc/jest":"^0.2.36","@eslint/js":"^9.11.1","typescript":"^5.6.2","@jest/types":"^29.6.3","@types/jest":"^29.5.13","@types/node":"^22.7.4","@types/eslint":"^9.6.1","sass-embedded":"^1.79.4","@tsconfig/node20":"^20.1.4","ts-jest-resolver":"^2.0.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.7.0","eslint-plugin-jest":"^28.8.3","eslint-plugin-unicorn":"^55.0.0","eslint-config-prettier":"^9.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sass-json-importer_1.2.0_1756911622980_0.7817438206857303","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@blakedarlin/sass-json-importer","version":"1.2.1","keywords":["sass","sass-embedded","importer","json","wordpress"],"author":{"url":"https://blakedarlin.com","name":"Blake Darlin","email":"hello@blakedarlin.com"},"license":"MIT","_id":"@blakedarlin/sass-json-importer@1.2.1","maintainers":[{"name":"blakedarlin","email":"hello@blakedarlin.com"}],"homepage":"https://github.com/blakedarlin/sass-json-importer#readme","bugs":{"url":"https://github.com/blakedarlin/sass-json-importer/issues"},"dist":{"shasum":"5c4d8271343c25595221556c49437f505d5453e8","tarball":"https://registry.npmjs.org/@blakedarlin/sass-json-importer/-/sass-json-importer-1.2.1.tgz","fileCount":7,"integrity":"sha512-uK/y0qkoUTMzkOigIrGywTkzsvsgm0iA+Gz9BZ1Tz72OklnxQ2sRnBSyrN193OJrbmkXnDwFP8bhBOxVzLHzjw==","signatures":[{"sig":"MEQCIHxJC5FAO28oWEDAVUM3gT8mqlKzIEFFFLFxlbDFM2MFAiA9WrDjf/AHfYXBbWM4qv63EZg4aSuJcK/VxhIcyUVORA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12564},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"75fcfbc2733f410be77623fd9bf8a0969b86a592","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --watchAll --config ./jest.config.js","build":"tsc -p tsconfig.build.json","watch":"tsc -p tsconfig.build.json -watch","format":"prettier --write \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","coverage":"NODE_OPTIONS=--experimental-vm-modules npx jest --config ./jest.config.js --coverage","format:check":"prettier --check \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","prepublishOnly":"npm run build"},"_npmUser":{"name":"blakedarlin","email":"hello@blakedarlin.com"},"repository":{"url":"git+https://github.com/blakedarlin/sass-json-importer.git","type":"git"},"_npmVersion":"11.11.0","description":"Allows importing JSON in Sass files parsed by sass/sass-embedded, with added support for WordPress.","directories":{},"_nodeVersion":"25.8.1","dependencies":{"tiny-jsonc":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.3.0","eslint":"^9.26.0","globals":"^17.4.0","ts-jest":"^29.4.6","ts-node":"^10.9.2","prettier":"^3.8.1","@swc/core":"1.15.18","@swc/jest":"^0.2.39","@eslint/js":"^9.26.0","typescript":"^5.9.3","@jest/types":"^30.3.0","@types/jest":"^30.0.0","@types/node":"^25.5.0","@types/eslint":"^9.6.1","sass-embedded":"^1.98.0","@tsconfig/node20":"^20.1.9","ts-jest-resolver":"^2.0.1","typescript-eslint":"^8.57.0","eslint-plugin-jest":"^29.15.0","eslint-plugin-unicorn":"^63.0.0","eslint-config-prettier":"^10.1.8"},"_npmOperationalInternal":{"tmp":"tmp/sass-json-importer_1.2.1_1773416394717_0.9325058851525154","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@blakedarlin/sass-json-importer","version":"1.2.3","keywords":["sass","sass-embedded","importer","json","wordpress"],"author":{"url":"https://blakedarlin.com","name":"Blake Darlin","email":"hello@blakedarlin.com"},"license":"MIT","_id":"@blakedarlin/sass-json-importer@1.2.3","maintainers":[{"name":"blakedarlin","email":"hello@blakedarlin.com"}],"homepage":"https://github.com/blakedarlin/sass-json-importer#readme","bugs":{"url":"https://github.com/blakedarlin/sass-json-importer/issues"},"dist":{"shasum":"7aa994a1e45247b9ab480bc93bd5d210349dda41","tarball":"https://registry.npmjs.org/@blakedarlin/sass-json-importer/-/sass-json-importer-1.2.3.tgz","fileCount":7,"integrity":"sha512-dx1asJaWDaSQmgIziqj+nVwUSXCLmmk9ohzQbzEyvYojeYu1IkfWcAlUlgITZdbcGKHHmMGpXbkQSQpe3UorUw==","signatures":[{"sig":"MEUCIGwX7EUfyoEq0Bd28F9b46i0PC0vG7O5GSkpahpzCk2wAiEA1bwbOvDrrSSIMlXhEwT0CHiTxxfvSakG+JX2MTcfQH4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12578},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"281465f8fb123b735213846973106e86133b35a1","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --watchAll --config ./jest.config.js","build":"tsc -p tsconfig.build.json","watch":"tsc -p tsconfig.build.json -watch","format":"prettier --write \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","coverage":"NODE_OPTIONS=--experimental-vm-modules npx jest --config ./jest.config.js --coverage","format:check":"prettier --check \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","prepublishOnly":"npm run build"},"_npmUser":{"name":"blakedarlin","email":"hello@blakedarlin.com"},"repository":{"url":"git+https://github.com/blakedarlin/sass-json-importer.git","type":"git"},"_npmVersion":"11.11.0","description":"Allows importing JSON in Sass files parsed by sass/sass-embedded, with added support for WordPress.","directories":{},"_nodeVersion":"25.8.1","dependencies":{"tiny-jsonc":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.3.0","eslint":"^9.26.0","globals":"^17.4.0","ts-jest":"^29.4.6","ts-node":"^10.9.2","prettier":"^3.8.1","@swc/core":"1.15.18","@swc/jest":"^0.2.39","@eslint/js":"^9.26.0","typescript":"^5.9.3","@jest/types":"^30.3.0","@types/jest":"^30.0.0","@types/node":"^25.5.0","@types/eslint":"^9.6.1","sass-embedded":"^1.98.0","@tsconfig/node20":"^20.1.9","ts-jest-resolver":"^2.0.1","typescript-eslint":"^8.57.0","eslint-plugin-jest":"^29.15.0","eslint-plugin-unicorn":"^63.0.0","eslint-config-prettier":"^10.1.8"},"_npmOperationalInternal":{"tmp":"tmp/sass-json-importer_1.2.3_1773417912507_0.41336523976522277","host":"s3://npm-registry-packages-npm-production"}},"1.2.4":{"name":"@blakedarlin/sass-json-importer","version":"1.2.4","keywords":["sass","sass-embedded","importer","json","wordpress"],"author":{"url":"https://blakedarlin.com","name":"Blake Darlin","email":"hello@blakedarlin.com"},"license":"MIT","_id":"@blakedarlin/sass-json-importer@1.2.4","maintainers":[{"name":"blakedarlin","email":"hello@blakedarlin.com"}],"homepage":"https://github.com/blakedarlin/sass-json-importer#readme","bugs":{"url":"https://github.com/blakedarlin/sass-json-importer/issues"},"dist":{"shasum":"287f743b0bc31be032963dd20f1febf148a02add","tarball":"https://registry.npmjs.org/@blakedarlin/sass-json-importer/-/sass-json-importer-1.2.4.tgz","fileCount":7,"integrity":"sha512-yzgRElD7ZNIvE+t/mZfvYcPGT4VWlOhaWfDTpBLicx1/aMgSjxPjK6N/WWpguhXEDAXKTDUHJozUTHw9mEOyaQ==","signatures":[{"sig":"MEQCIAMOjys1l+j2d9MgOYe5EFkokNZxfTn87iG4kYyJz9sOAiB28UIo/lRjp/6ZqFVMbIxUj2e90XCJxWajvLDBkd6Vfg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12578},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"554a0c91a16bdb9793cc2851569d1f7c7c1131f3","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --watchAll --config ./jest.config.js","build":"tsc -p tsconfig.build.json","watch":"tsc -p tsconfig.build.json -watch","format":"prettier --write \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","coverage":"NODE_OPTIONS=--experimental-vm-modules npx jest --config ./jest.config.js --coverage","format:check":"prettier --check \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","prepublishOnly":"npm run build"},"_npmUser":{"name":"blakedarlin","email":"hello@blakedarlin.com"},"repository":{"url":"git+https://github.com/blakedarlin/sass-json-importer.git","type":"git"},"_npmVersion":"11.12.1","description":"Allows importing JSON in Sass files parsed by sass/sass-embedded, with added support for WordPress.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"tiny-jsonc":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.3.0","eslint":"^9.26.0","globals":"^17.4.0","ts-jest":"^29.4.6","ts-node":"^10.9.2","prettier":"^3.8.1","@swc/core":"1.15.18","@swc/jest":"^0.2.39","@eslint/js":"^9.26.0","typescript":"^5.9.3","@jest/types":"^30.3.0","@types/jest":"^30.0.0","@types/node":"^25.5.0","@types/eslint":"^9.6.1","sass-embedded":"^1.98.0","@tsconfig/node20":"^20.1.9","ts-jest-resolver":"^2.0.1","typescript-eslint":"^8.57.0","eslint-plugin-jest":"^29.15.0","eslint-plugin-unicorn":"^63.0.0","eslint-config-prettier":"^10.1.8"},"_npmOperationalInternal":{"tmp":"tmp/sass-json-importer_1.2.4_1776873235101_0.9651779311358446","host":"s3://npm-registry-packages-npm-production"}},"1.2.5":{"name":"@blakedarlin/sass-json-importer","version":"1.2.5","description":"Allows importing JSON in Sass files parsed by sass/sass-embedded, with added support for WordPress.","type":"module","main":"./dist/index.js","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/blakedarlin/sass-json-importer.git"},"keywords":["sass","sass-embedded","importer","json","wordpress"],"author":{"name":"Blake Darlin","email":"hello@blakedarlin.com","url":"https://blakedarlin.com"},"homepage":"https://github.com/blakedarlin/sass-json-importer#readme","scripts":{"test":"NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --watchAll --config ./jest.config.js","coverage":"NODE_OPTIONS=--experimental-vm-modules npx jest --config ./jest.config.js --coverage","build":"tsc -p tsconfig.build.json","watch":"tsc -p tsconfig.build.json -watch","format":"prettier --write \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","format:check":"prettier --check \"**/*.{js,ts,md,json}\" --ignore-path .prettierignore","prepublishOnly":"npm run build"},"dependencies":{"tiny-jsonc":"^1.0.2"},"devDependencies":{"@eslint/js":"^10.0.1","@jest/types":"^30.4.1","@swc/core":"1.15.47","@swc/jest":"^0.2.39","@tsconfig/node20":"^20.1.9","@types/eslint":"^9.6.1","@types/jest":"^30.0.0","@types/node":"^26.2.0","eslint":"^10.8.1","eslint-config-prettier":"^10.1.8","eslint-plugin-jest":"^29.16.0","eslint-plugin-unicorn":"^73.0.0","globals":"^17.9.0","jest":"^30.4.2","prettier":"^3.9.6","sass-embedded":"^1.100.0","ts-jest":"^29.4.12","ts-jest-resolver":"^2.0.1","ts-node":"^10.9.2","typescript":"~6.0.3","typescript-eslint":"^8.67.0"},"allowScripts":{"@swc/core@1.15.47":true,"unrs-resolver@1.12.2":true,"fsevents@2.3.3":true},"gitHead":"84f5aff9799bbc028920c1644422e2c465f8500c","types":"./dist/index.d.ts","_id":"@blakedarlin/sass-json-importer@1.2.5","bugs":{"url":"https://github.com/blakedarlin/sass-json-importer/issues"},"_nodeVersion":"26.5.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-eAHItansN5qtTgOAOCZN95514IM9D4SNCZYsZYUJgmA9NvzGJHM6y808E5Yge3RWTpmIPaRljIa6CMJ2nJn5XA==","shasum":"9e6e5f2ccc6d2720fab21a93acc14e12782de40e","tarball":"https://registry.npmjs.org/@blakedarlin/sass-json-importer/-/sass-json-importer-1.2.5.tgz","fileCount":7,"unpackedSize":12689,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDxoyIIPndUsm300pchgU+mAsHCBrypbz1tde+n4nwVxAiBlprzL3AnWa/svRcLCz9u6qz5uQ4x6L8ui35YaSUSZdQ=="}]},"_npmUser":{"name":"blakedarlin","email":"hello@blakedarlin.com"},"directories":{},"maintainers":[{"name":"blakedarlin","email":"hello@blakedarlin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sass-json-importer_1.2.5_1786476363113_0.4321530438933099"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-30T19:34:30.856Z","modified":"2026-08-11T19:26:03.411Z","1.1.0":"2024-09-30T19:34:31.208Z","1.2.0":"2025-09-03T15:00:23.153Z","1.2.1":"2026-03-13T15:39:54.896Z","1.2.3":"2026-03-13T16:05:12.670Z","1.2.4":"2026-04-22T15:53:55.227Z","1.2.5":"2026-08-11T19:26:03.263Z"},"bugs":{"url":"https://github.com/blakedarlin/sass-json-importer/issues"},"author":{"name":"Blake Darlin","email":"hello@blakedarlin.com","url":"https://blakedarlin.com"},"license":"MIT","homepage":"https://github.com/blakedarlin/sass-json-importer#readme","keywords":["sass","sass-embedded","importer","json","wordpress"],"repository":{"type":"git","url":"git+https://github.com/blakedarlin/sass-json-importer.git"},"description":"Allows importing JSON in Sass files parsed by sass/sass-embedded, with added support for WordPress.","maintainers":[{"name":"blakedarlin","email":"hello@blakedarlin.com"}],"readme":"# sass-json-importer\n\nJSON importer for [sass-embedded](https://github.com/sass/embedded-host-node). Allows `@use`ing/`@import`ing `.json` files in Sass files parsed by `sass-embedded`, using the [Importer API](https://sass-lang.com/documentation/js-api/interfaces/importer/).\n\n## Usage\n\n### [sass-embedded](https://github.com/sass/embedded-host-node)\n\n```javascript\nconst sass = require('sass-embedded');\nconst jsonImporter = require('@blakedarlin/sass-json-importer');\n\nconst sassOptions = {\n\timporters: [jsonImporter()],\n};\n\n// Sync\nconst result = sass.compile(scssFilename, sassOptions);\n\n// Async\nconst result = await sass.compileAsync(scssFilename, sassOptions);\n```\n\n## loadPaths\n\n```javascript\nloadPaths?: string[]\n```\n\nThe importer accepts a `loadPaths` option, which is a string array of absolute paths. The Sass file's own parent is automatically added as the first `loadPaths` item, so there is no need to specify it.\n\n```javascript\nconst result = sass.compile(scssFilename, {\n\timporters: [\n\t\tjsonImporter({ loadPaths: ['/some/path', '/src/node_modules'] }),\n\t],\n});\n```\n\n## camelCase to kebab-case\n\n```javascript\nconvertCase?: boolean\n```\n\nWhether to convert standard JavaScript camelCase keys into CSS/SCSS compliant kebab-case keys. Default is `false`. Example:\n\n`variables.json`:\n\n```json\n{\n\t\"bgBackgroundColor\": \"red\"\n}\n```\n\n`style.scss`:\n\n```scss\n@import 'variables.json';\n\ndiv {\n\tbackground: $bg-background-color;\n}\n```\n\nTo enable the `convertCase` option:\n\n```javascript\nconst result = sass.compile(scssFilename, {\n\timporters: [jsonImporter({ convertCase: true })],\n});\n```\n\n## WordPress internal links\n\n```javascript\nresolveWordPressInternals?: boolean\n```\n\nWhether to convert WordPress-style internal links to CSS custom properties. Default is `false`.\n\nSince WordPress 6.3.0, `WP_Theme_JSON::resolve_variables` resolves the internal link format to the CSS custom property. E.g., `var:preset|color|secondary` -> `var(--wp--preset--color--secondary)`. This option likewise converts those types of values when present in the JSON.\n\n```javascript\nconst result = sass.compile(scssFilename, {\n\timporters: [jsonImporter({ resolveWordPressInternals: true })],\n});\n```\n\n## Stringify keys in a map\n\nBy default, in a map all keys are imported unstringified.\n\nA json file:\n\n```json\n{\n\t\"red\": \"#c33\",\n\t\"bee-yellow\": \"#fdfd00\"\n}\n```\n\nwill be imported as scss:\n\n```scss\n$colors: (\n\tred: #c33,\n\tbeeYellow: #fdfd00,\n);\n```\n\nIn the scss map above `red` is a color, while `beeYellow` is a string.\n\n`stringifyKeys: true` can be used to stringify all keys in a map.\n\nWhen `stringifyKeys: true`, the following scss map will be imported for the json example from above:\n\n```scss\n$colors: (\n\t'red': #c33,\n\t'beeYellow': #fdfd00,\n);\n```\n\n## Acknowledgements\n\nThis module is based on the original [node-sass-json-importer](https://www.npmjs.com/package/node-sass-json-importer) and the [sass-json-importer](https://github.com/neild3r/sass-json-importer). Unfortunately, neither handles WordPress's theme.json file correctly.\n","readmeFilename":"README.md"}