{"_id":"less-plugin-aliases","_rev":"4-45ac8b3614d25b9ad2985fb9d9053617","name":"less-plugin-aliases","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"less-plugin-aliases","version":"1.0.0","main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/dancon/less-plugin-aliases.git"},"author":{"name":"houquan","email":"870301137@qq.com"},"license":"MIT","scripts":{"build":"tsc -d -p ."},"types":"lib/index.d.ts","devDependencies":{"@types/less":"^3.0.1","@types/node":"^13.9.1","@typescript-eslint/eslint-plugin":"^2.23.0","@typescript-eslint/parser":"^2.23.0","eslint":"^6.8.0","typescript":"^3.8.3"},"dependencies":{"less":"^3.11.1"},"gitHead":"abf90337643006d3975d08f349bc0797616fe3f2","description":"A less plugin work with typescript-plugin-css-modules","bugs":{"url":"https://github.com/dancon/less-plugin-aliases/issues"},"homepage":"https://github.com/dancon/less-plugin-aliases#readme","_id":"less-plugin-aliases@1.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.13.0","dist":{"integrity":"sha512-run622hobvbOOLJYtwQg34NCf6WYNU8LdQ5Dmh54WICUU+m5jtaeel6FTgmia6eHHMMp1AEqyL8h4hAEfEBb9g==","shasum":"2af52e210e3a4672abee48a31a3af27abbc4bdbc","tarball":"https://registry.npmjs.org/less-plugin-aliases/-/less-plugin-aliases-1.0.0.tgz","fileCount":8,"unpackedSize":8324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebllnCRA9TVsSAnZWagAAmckQAImNC8woG6bt2Dspvnow\nTqLc5n0CvdHcTt24SuVonBcZxB42DnwofbH+SWihgjGOdl9op6m2gF6LD/wa\nCv/v6uCsSmRUomJ91fUFKzt+WAU857JYNp6YVKK5oo90bXxPhYvX40um8FeV\nPd0i2vas2OAlU/J238nYQvDry3d5FC/V6pr7hpbz/04Yg2kWFs9VYCh9yhJD\nuT7EinhjixdyR9rIf/eVAa5MXuHlZRBQGcQWqNC4k0Gtgm0Sqx8wjC73ZQJJ\nZ3ZU4/4EBWX8L3qgD9IGjDC5tBHq7zJzfgYEyEpPp68M5QwfBtc+j3oG1nuK\n+vpFFf15rrb4GHtLjhgJPVDxqUbxbWfjWJafvEDgKI+eOFI+9lKfmbQAD5tp\nyQeSj3L4Jr3R7LtZkgGQYoYVseJ6gLqKQzhek4PisNCLpIy+IGxKHDzBP/Wj\nCncMSlbEXiry+SFVORpdWLLYmY58r5vmMsUNE/bD7xnX0nEZGEE3fq8U0Hqr\nqB4QVKrfXakE4xVVAfQNZQfM6zieIoB6Y3WWBrWBDoWfw0OOjmgPOGMYtzOU\nDVZt3W1ZYEkgaSAVlblvjZbyMP88m54QcJeU44C4WtVaRMq7oED2i6QyI9PG\ncMO2QA4zw3WTfNqC19kTCBdvJlpNwxeUkSJYTvVbe4Dy4tx0NKvB6DkUWjLk\nD09R\r\n=qD7K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZOwn6XUiKmfjHKAz7eQY5P04sfxNlQvVmSM4NbtOyXAiEArm1mIIct0vjoovJKDuj8aiennLJScuC39xCLVRasoGU="}]},"maintainers":[{"name":"sizhao","email":"870301137@qq.com"}],"_npmUser":{"name":"sizhao","email":"870301137@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/less-plugin-aliases_1.0.0_1584290151461_0.022745823028045065"},"_hasShrinkwrap":false},"1.0.1":{"name":"less-plugin-aliases","version":"1.0.1","main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/dancon/less-plugin-aliases.git"},"author":{"name":"houquan","email":"870301137@qq.com"},"license":"MIT","scripts":{"build":"tsc -d -p ."},"types":"lib/index.d.ts","devDependencies":{"@types/json5":"^0.0.30","@types/less":"^3.0.1","@types/node":"^13.9.1","@typescript-eslint/eslint-plugin":"^2.23.0","@typescript-eslint/parser":"^2.23.0","eslint":"^6.8.0","typescript":"^3.8.3"},"dependencies":{"find-up":"^4.1.0","json5":"^2.1.1","less":"^3.11.1"},"gitHead":"0f43fb9fcd14f1802fe416b456147bd75a3598e7","description":"A less plugin work with typescript-plugin-css-modules","bugs":{"url":"https://github.com/dancon/less-plugin-aliases/issues"},"homepage":"https://github.com/dancon/less-plugin-aliases#readme","_id":"less-plugin-aliases@1.0.1","_nodeVersion":"12.13.0","_npmVersion":"6.13.0","dist":{"integrity":"sha512-qECJNaX3XNz3GcTjxCHRq19GLeXy6gmTzXfY+NUwIdVMRbht9KOss6tSssYPDcS/GV63OIaaulmFVGfZET9a8Q==","shasum":"859a52b223cd841c6781ba3b8e599eb8a2133a16","tarball":"https://registry.npmjs.org/less-plugin-aliases/-/less-plugin-aliases-1.0.1.tgz","fileCount":8,"unpackedSize":9037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebuhUCRA9TVsSAnZWagAA4bYP/Ah2gl35/nuUKIpyPuC9\n4cktVgAOkm52Otc31eSxXH9TVgUQJhtD3RQQFjbF0yKtuO5shel38xq8D3P7\nUv3yCGYHX8utFqFpsHSF2AMhSNXgV9PIroO7XT47CNp0Jz4nDRMDMNu7tAHo\nI+ti0pjQINU2JGycvLP7eIaKg+UQ2UewEZdHv2oX5M3WKuybxkDTo0cjeQ7R\nI/wLHyALofNO0V47VH9WU3f2MphBi7Wb02jZ4B/20jmDXF/uFU+mD+GYe8Bb\nlVq8DR/B4zMChvr5aONI4XMQ9LXLzTUEoHDS7gih96X3QShQlO2z6jornvGX\np1uVqcDq703S6sPZhS56z7s12qBlnF37q0T+Ukekr+U8zI2U4S79r7f74CBe\nEmogbMEkq+uDfhgFmCOlFnKZe4szpBJEV3wmlmhF860bHGK7l5XQXOVQY/cf\nPjDQ0USAyC8UhPeA+pEHu3d3ic4KabDicH8HX6HTlGGWBj9HVdOqcyjiyAr0\nT3N1QRBT1UMKfGKZwFW3LAu9gwYVWdxQxRhHypquy2DwTbdqN9O5LWTJi+p3\nYTRfWYau8FRe6C9RUMAMiU3D4F57VQRkkZtR7+B4OFbfEEc5IrRSSYSiJt/R\nvrMLreJwRTG0qSY9m9a9A0ohPdUg1WlZpKwBH5cnIrUAxMdt/iPmO6ixiGN/\nAql5\r\n=VtCb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpTo+lLNVqfRHRPBxW6dkCIEGaICHFYHHlMxNxZbujKAiAFoVJeT6QTTmaVTBAF1sa3dEPdOySYUnGrPlirJSnaBQ=="}]},"maintainers":[{"name":"sizhao","email":"870301137@qq.com"}],"_npmUser":{"name":"sizhao","email":"870301137@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/less-plugin-aliases_1.0.1_1584326740539_0.0022782653970507827"},"_hasShrinkwrap":false},"1.0.2":{"name":"less-plugin-aliases","version":"1.0.2","main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/dancon/less-plugin-aliases.git"},"author":{"name":"houquan","email":"870301137@qq.com"},"license":"MIT","scripts":{"build":"tsc -d -p ."},"types":"lib/index.d.ts","devDependencies":{"@types/json5":"^0.0.30","@types/less":"^3.0.1","@types/node":"^13.9.1","@typescript-eslint/eslint-plugin":"^2.23.0","@typescript-eslint/parser":"^2.23.0","eslint":"^6.8.0","typescript":"^3.8.3"},"dependencies":{"find-up":"^4.1.0","json5":"^2.1.1","less":"^3.11.1"},"gitHead":"f8fa67340a7d121a511ea60a2b6ae31fbfe1a157","description":"A less plugin work with typescript-plugin-css-modules","bugs":{"url":"https://github.com/dancon/less-plugin-aliases/issues"},"homepage":"https://github.com/dancon/less-plugin-aliases#readme","_id":"less-plugin-aliases@1.0.2","_nodeVersion":"12.13.0","_npmVersion":"6.13.0","dist":{"integrity":"sha512-abfC8t6Xrz/A7BlB+3auDpo76JdhmhboRFDNQjL2nSzJukfwkerx3atbzUXKqgO50Zv39L+CyY7y9RsUyepo/w==","shasum":"4e97e9bc198a4354b605e267077e5006a34a4365","tarball":"https://registry.npmjs.org/less-plugin-aliases/-/less-plugin-aliases-1.0.2.tgz","fileCount":8,"unpackedSize":9037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebuioCRA9TVsSAnZWagAAEt4P/Amlehy4GIYxPGpP6jwl\ni3nU/vRwmKe4jj6AY5O4+s26XAY14+qpkm+2eQf1p3g7/fKDgwzXIByOPLIP\nDO5bHTuiOQFLNEXgMxBmZTXRTnTedPf0PGn5RKwbZxmSZyxSDdEJeKQokdsI\n3hPcHuWU4MhQ/S6KS8Q802UEPrxNQhgyCa7785AQfTNlof1yCFObeSXAah5S\nA2Lbzwwd5SmPmjA26lifBh5aIWqUrHIGwIughCacqdifly1/z3At5mOqz4mI\nETpFXTdIaTyHNwVArNQDoeH76FVUKxiKucnli2RXKumWf85xyORUVAv76Cdb\n0iOk3Gl4skLHz3WD5sZyFvSaQf+7yV4B0Asx0ESkXypdk8ZtOSm9r8XJpK3N\neFKnvu+Agi843XgIl8i7ugPbg/BbMDfmwwn69tx3HUUKw5Fr1rfnTJZHCAde\nm8lA47VnSyhuXn/Qgppj5wc/bjGgnHCMr/6a6p2YUyrhpzxXqHbcNQaMJL/q\n8pkhsIKdyKkAhimiqkKLXpM8tSTRN5kGScyI4tQ+qkI+VhmT7vTdaVN3FKAU\nBs7JZKAN8DvId36LyijCfGV4teOACPP+gmGu6/HlPvdCMUhqpB1gucrbqwPs\nNOgJz6yLCYz+0BC6wjmxl2lZ850ZfB7ZnXxIQjwlGel25kmFyad1tLPSmIxK\nBcu5\r\n=xVc2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEnOKEQXPgVejtgSMP5NMPhB2JXR8Jg50/Yb892uwDp8AiEA8qmyGqv0l/fQn8qZxfTrAiH16jUyofKhRbfnqhCUK3A="}]},"maintainers":[{"name":"sizhao","email":"870301137@qq.com"}],"_npmUser":{"name":"sizhao","email":"870301137@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/less-plugin-aliases_1.0.2_1584326823757_0.7883779149251235"},"_hasShrinkwrap":false},"1.0.3":{"name":"less-plugin-aliases","version":"1.0.3","main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/dancon/less-plugin-aliases.git"},"author":{"name":"houquan","email":"870301137@qq.com"},"license":"MIT","scripts":{"build":"tsc -d -p ."},"types":"lib/index.d.ts","devDependencies":{"@types/json5":"^0.0.30","@types/less":"^3.0.1","@types/node":"^13.9.1","@typescript-eslint/eslint-plugin":"^2.23.0","@typescript-eslint/parser":"^2.23.0","eslint":"^6.8.0","typescript":"^3.8.3"},"dependencies":{"find-up":"^4.1.0","json5":"^2.1.1","less":"^3.11.1"},"gitHead":"a7d59a96bf3e3c2838314d1b2b4badb6a7c08e95","description":"A less plugin work with typescript-plugin-css-modules","bugs":{"url":"https://github.com/dancon/less-plugin-aliases/issues"},"homepage":"https://github.com/dancon/less-plugin-aliases#readme","_id":"less-plugin-aliases@1.0.3","_nodeVersion":"12.13.0","_npmVersion":"6.13.0","dist":{"integrity":"sha512-O3a77rG3fUKJ9H1NjO+vJMHC3OiS8nwtqAKP2eor+njO1dO1B9eLH9t/XpkQNNfbeU2mFUwtQJqQR0t2e9gx7A==","shasum":"cc233698f991c34679ab4054256ea5096dfdeeb9","tarball":"https://registry.npmjs.org/less-plugin-aliases/-/less-plugin-aliases-1.0.3.tgz","fileCount":8,"unpackedSize":10667,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebv9PCRA9TVsSAnZWagAAD60P+QHqH+4B4BnZtkPvzVUu\noGa9at6r7KhVLx59Zl8vNwyXlHQYirVoIeGyD9D/qbzYCFWFN3NM+XgWQgL4\nL+MMj7/tXNmz5+mGFrJ7wTQv54hC//akHpIoa9mbDNquvT4j9m+n1bIYOR/0\nTH1KXwEfn4DOxq/HxjPq+a2VILMJXodsN9V5+MAQlMlikXy/6NGgQiQ22qbk\nBw6pTmLpHovjPEPGNmmX7OEIjyN2sx8jQVMX42BSfFZ0HVGVKfD8DeEvPzHn\nGdHuQ7vng1Oki4qTCzYBMMHmnQikq9Se0VUpD2/9PWjOPzvFcSb2G+GsvzpI\nSgG86rOC9kvigAm5yd5lEcmQTl2zjlB1sBNgnZJq0Tg4v5D6mXlfgQ7xErdR\nJi+AUceWiLiSN0P5NVcDfmPPYvuW6kUkzt/mUmAb9h6ni5f25+5L+gDL58ZV\nRKzrUYaPFfYIyjczOXeYjwekrVpKh8KPO9VjNNjGZQMYDE78qeDhnvSuNbAD\nn1RrKrfWjl1ml+MbvS7n4JdDUKHEbbvNV4z4XpOXMxGn8FB9rqa4HhtXmPx6\nk82of0s1z1Tve5BkQ0yVT7fzYnoEEWb+sDJ+Fwoeiby2OJtUxoRAs3WX9Wtr\nQ5ez/uxUOXuQMZMAd7D0XFF52mcGoB+9CZONFJtn7RV+tZGVjR5fKpuSZ3bL\nOoFB\r\n=ZJCp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDo16Xx9EFRQ2/oe0uvWjHDqpHJPSVTqN7a8HaiEoeNVgIhAJMr4kTI79W16obifnb5o7qb0GlMl1dkYfZCTGgfXcMz"}]},"maintainers":[{"name":"sizhao","email":"870301137@qq.com"}],"_npmUser":{"name":"sizhao","email":"870301137@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/less-plugin-aliases_1.0.3_1584332622609_0.2709321833169409"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-15T16:35:51.460Z","1.0.0":"2020-03-15T16:35:51.587Z","modified":"2022-05-07T20:50:28.718Z","1.0.1":"2020-03-16T02:45:40.646Z","1.0.2":"2020-03-16T02:47:03.939Z","1.0.3":"2020-03-16T04:23:42.729Z"},"maintainers":[{"name":"sizhao","email":"870301137@qq.com"}],"description":"A less plugin work with typescript-plugin-css-modules","homepage":"https://github.com/dancon/less-plugin-aliases#readme","repository":{"type":"git","url":"git+ssh://git@github.com/dancon/less-plugin-aliases.git"},"author":{"name":"houquan","email":"870301137@qq.com"},"bugs":{"url":"https://github.com/dancon/less-plugin-aliases/issues"},"license":"MIT","readme":"# less-plugin-aliases\n\nA less plugin work with typescript-plugin-css-modules\n\n## Work with webpack and [typscript-plugin-css-modules](https://github.com/mrmckeb/typescript-plugin-css-modules)\n\n```json5\n{\n  \"compilerOptions\": {\n    \"plugins\": [\n      {\n        \"name\": \"typescript-plugin-css-modules\",\n        \"options\": {\n          \"classnameTransform\": \"camelCase\",\n          \"customMatcher\": \"\\\\.less$\",\n          \"customRenderer\": \"node_modules/less-plugin-aliases/lib/customRender.js\"\n        }\n      }\n    ],\n\n    // ...\n  }\n}\n```\n\n## Work alone with less\n\n```ts\n  import less from 'less'\n  import LessPluginAliases from 'less-plugin-aliases'\n\n  less.render(css, {\n    ...\n    plugins: [\n      new LessPluginAliases({\n        prefix: '~',\n        aliases: {\n          common: path(__dirname, 'src/common') // resovle to '/workspace/project/src/common'\n        }\n      })\n    ]\n  })\n```\n\nindex.less\n\n```less\n@import '~common/variables.less';\n\n.container {\n  padding: 32px;\n  font-size: @fontSize;\n  background: @white;\n\n  .header-title {\n    font-size: 16px;\n  }\n}\n```\n\nThe plugin will resolve `~common/variables.less` to `/workspace/project/src/common/variables.less`.\n","readmeFilename":"README.md"}