{"_id":"babel-plugin-root-import","_rev":"3333151","name":"babel-plugin-root-import","description":"Babel Plugin to enable relative root-import","dist-tags":{"latest":"6.6.0"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"time":{"modified":"2024-07-10T07:33:14.000Z","created":"2016-05-29T20:27:13.044Z","6.6.0":"2020-10-23T20:43:55.266Z","6.5.0":"2020-03-20T16:29:07.855Z","6.4.1":"2019-07-18T21:18:20.517Z","6.4.0":"2019-07-18T16:02:36.937Z","6.3.0":"2019-07-17T15:10:43.760Z","6.2.0":"2019-05-11T06:23:21.724Z","6.1.0":"2018-06-23T16:07:36.610Z","6.0.0":"2018-06-01T07:45:43.269Z","5.1.0":"2017-03-21T11:45:03.625Z","5.0.0":"2017-02-10T09:01:54.800Z","1.1.1":"2016-10-04T03:14:43.232Z","1.0.1":"2016-05-29T20:47:53.140Z","1.0.0":"2016-05-29T20:27:13.044Z"},"users":{},"author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"versions":{"6.6.0":{"name":"babel-plugin-root-import","version":"6.6.0","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"npm run test-babel6; npm run test-babel7","test-babel6":"mocha test/*.spec.js --require babel-core/register --require config/mocha.js","test-babel7":"mocha test/*.spec.js --require babel-core/register --require config/mocha.js --require test/set-babel7.js ","test-watch":"mocha test/*.spec.js --require babel-core/register --require config/mocha.js --watch","lint-js":"eslint plugin && npm run format-check","format":"npm run prettier-internal -- --write","format-check":"npm run prettier-internal -- --check","prettier-internal":"prettier 'plugin/*.js' README.md 'config/*.js' .eslintrc package.json 'test/**/*.js'","compile":"babel -d build/ plugin/","prepublish":"npm run test && npm run compile"},"dependencies":{"slash":"^3.0.0"},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-syntax-dynamic-import":"^7.2.0","@babel/preset-env":"^7.4.5","babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^10.0.2","babel-plugin-syntax-dynamic-import":"^6.18.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^4.2.0","eslint":"~6.0.1","mocha":"^6.1.4","prettier":"1.18.2","sinon":"^7.3.2"},"gitHead":"d9b01291577cc62413db685e7ec92fbfaf8c284e","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@6.6.0","_nodeVersion":"10.16.0","_npmVersion":"6.14.4","dist":{"shasum":"85940840f308a8c292f66ca0b5bdd314046273ed","size":7367,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-6.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-6.6.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"_npmUser":{"name":"greenjello","email":"f.bagnardi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-root-import_6.6.0_1603485835100_0.8011405977930339"},"_hasShrinkwrap":false,"publish_time":1603485835266,"_cnpm_publish_time":1603485835266,"_cnpmcore_publish_time":"2021-12-16T16:44:02.975Z"},"6.5.0":{"name":"babel-plugin-root-import","version":"6.5.0","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"npm run test-babel6; npm run test-babel7","test-babel6":"mocha test/*.spec.js --require babel-core/register --require config/mocha.js","test-babel7":"mocha test/*.spec.js --require babel-core/register --require config/mocha.js --require test/set-babel7.js ","test-watch":"mocha test/*.spec.js --require babel-core/register --require config/mocha.js --watch","lint-js":"eslint plugin && npm run format-check","format":"npm run prettier-internal -- --write","format-check":"npm run prettier-internal -- --check","prettier-internal":"prettier 'plugin/*.js' README.md 'config/*.js' .eslintrc package.json 'test/**/*.js'","compile":"babel -d build/ plugin/","prepublish":"npm run test && npm run compile"},"dependencies":{"slash":"^3.0.0"},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-syntax-dynamic-import":"^7.2.0","@babel/preset-env":"^7.4.5","babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^10.0.2","babel-plugin-syntax-dynamic-import":"^6.18.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^4.2.0","eslint":"~6.0.1","mocha":"^6.1.4","prettier":"1.18.2","sinon":"^7.3.2"},"gitHead":"f2175ed94967c2c319dda3ab218bd5357e41d155","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@6.5.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"ac4016426b5d36c48127c73ad199fa72c9ff8817","size":7119,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-6.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-6.5.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"_npmUser":{"name":"greenjello","email":"f.bagnardi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-root-import_6.5.0_1584721747758_0.09996756444786858"},"_hasShrinkwrap":false,"publish_time":1584721747855,"_cnpm_publish_time":1584721747855,"_cnpmcore_publish_time":"2021-12-16T16:44:03.201Z"},"6.4.1":{"name":"babel-plugin-root-import","version":"6.4.1","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"npm run test-babel6; npm run test-babel7","test-babel6":"mocha test/*.spec.js --require babel-core/register --require config/mocha.js","test-babel7":"mocha test/*.spec.js --require babel-core/register --require config/mocha.js --require test/set-babel7.js ","test-watch":"mocha test/*.spec.js --require babel-core/register --require config/mocha.js --watch","lint-js":"eslint plugin && npm run format-check","format":"npm run prettier-internal -- --write","format-check":"npm run prettier-internal -- --check","prettier-internal":"prettier 'plugin/*.js' README.md 'config/*.js' .eslintrc package.json 'test/**/*.js'","compile":"babel -d build/ plugin/","prepublish":"npm run test && npm run compile"},"dependencies":{"slash":"^3.0.0"},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-syntax-dynamic-import":"^7.2.0","@babel/preset-env":"^7.4.5","babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^10.0.2","babel-plugin-syntax-dynamic-import":"^6.18.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^4.2.0","eslint":"~6.0.1","mocha":"^6.1.4","prettier":"1.18.2","sinon":"^7.3.2"},"gitHead":"8db97436735d59803c35ce2e02a76cc4982119f6","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@6.4.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"greenjello","email":"f.bagnardi@gmail.com"},"dist":{"shasum":"5c0dfe7588778b1933764c913fa3ed1c78150bf6","size":8642,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-6.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-6.4.1.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-root-import_6.4.1_1563484700380_0.962951431382516"},"_hasShrinkwrap":false,"publish_time":1563484700517,"_cnpm_publish_time":1563484700517,"_cnpmcore_publish_time":"2021-12-16T16:44:03.441Z"},"6.4.0":{"name":"babel-plugin-root-import","version":"6.4.0","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"npm run test-babel6; npm run test-babel7","test-babel6":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register","test-babel7":"mocha test/*.spec.js --require config/mocha.js --require test/set-babel7.js --compilers js:babel-core/register","test-watch":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register --watch","lint-js":"eslint plugin","compile":"babel -d build/ plugin/","prepublish":"npm run test && npm run compile"},"dependencies":{"slash":"^1.0.0"},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-syntax-dynamic-import":"^7.2.0","@babel/preset-env":"^7.4.5","babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^5.0.0","babel-plugin-syntax-dynamic-import":"^6.18.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^3.2.0","eslint":"~2.1.0","mocha":"^2.2.5","sinon":"^1.15.4"},"gitHead":"653686b0c256de1d0c79f20b86a730f61babfe03","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@6.4.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"greenjello","email":"f.bagnardi@gmail.com"},"dist":{"shasum":"ac8467117dac375568c0a8deb6bc454ad6f6a17f","size":8441,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-6.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-6.4.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-root-import_6.4.0_1563465756821_0.8215080040968004"},"_hasShrinkwrap":false,"publish_time":1563465756937,"_cnpm_publish_time":1563465756937,"_cnpmcore_publish_time":"2021-12-16T16:44:03.685Z"},"6.3.0":{"name":"babel-plugin-root-import","version":"6.3.0","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register","test-watch":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register --watch","lint-js":"eslint plugin","compile":"babel -d build/ plugin/","prepublish":"npm run test && npm run compile"},"dependencies":{"slash":"^1.0.0"},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^5.0.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^3.2.0","eslint":"~2.1.0","mocha":"^2.2.5","sinon":"^1.15.4"},"gitHead":"6e8f53d0e4f439aed4ac562057f5c0e61155076b","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@6.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"greenjello","email":"f.bagnardi@gmail.com"},"dist":{"shasum":"cf51669eb9b2c45789fe47bdaddfcec2e4e3bd1f","size":7667,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-6.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-6.3.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-root-import_6.3.0_1563376243479_0.6224844822630318"},"_hasShrinkwrap":false,"publish_time":1563376243760,"_cnpm_publish_time":1563376243760,"_cnpmcore_publish_time":"2021-12-16T16:44:03.931Z"},"6.2.0":{"name":"babel-plugin-root-import","version":"6.2.0","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register","test-watch":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register --watch","lint-js":"eslint plugin","compile":"babel -d build/ plugin/","prepublish":"npm run test && npm run compile"},"dependencies":{"slash":"^1.0.0"},"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^5.0.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^3.2.0","eslint":"~2.1.0","mocha":"^2.2.5","sinon":"^1.15.4"},"gitHead":"0d2e1722d5d1ea830e39d08a48535fdd30439e04","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@6.2.0","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"shasum":"5a5cbcefbd67506738679ed6f899c013142bcd49","size":5783,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-6.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-6.2.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"_npmUser":{"name":"greenjello","email":"f.bagnardi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-root-import_6.2.0_1557555801551_0.48834236096280215"},"_hasShrinkwrap":false,"publish_time":1557555801724,"_cnpm_publish_time":1557555801724,"_cnpmcore_publish_time":"2021-12-16T16:44:04.415Z"},"6.1.0":{"name":"babel-plugin-root-import","version":"6.1.0","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","files":["index.js","build"],"repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register","test-watch":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register --watch","lint-js":"eslint plugin","compile":"babel -d build/ plugin/","prepublish":"npm run test && npm run compile"},"dependencies":{"slash":"^1.0.0"},"devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^5.0.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^3.2.0","eslint":"~2.1.0","mocha":"^2.2.5","sinon":"^1.15.4"},"gitHead":"8f472988228775f5f2a1538987de4d2f253a33d9","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@6.1.0","_npmVersion":"5.7.1","_nodeVersion":"8.10.0","_npmUser":{"name":"greenjello","email":"f.bagnardi@gmail.com"},"dist":{"shasum":"ea27407df1e920750fc247b2702e322a19f8a14f","size":5456,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-6.1.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-root-import_6.1.0_1529770056563_0.10967373411659542"},"_hasShrinkwrap":false,"publish_time":1529770056610,"_cnpm_publish_time":1529770056610,"_cnpmcore_publish_time":"2021-12-16T16:44:04.677Z"},"6.0.0":{"name":"babel-plugin-root-import","version":"6.0.0","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","files":["index.js","build"],"repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register","test-watch":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register --watch","lint-js":"eslint plugin","compile":"babel -d build/ plugin/"},"dependencies":{"slash":"^1.0.0"},"devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^5.0.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^3.2.0","eslint":"~2.1.0","mocha":"^2.2.5","sinon":"^1.15.4"},"gitHead":"b26dcb247ffee0a4f0d7e7c86942ec6091173c66","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@6.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.0.0","_npmUser":{"name":"michaelzoidl","email":"npm@michaelzoidl.com"},"dist":{"shasum":"56b1e58ae33bcd824354768dd4dccff31d590b3a","size":5172,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-6.0.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-root-import_6.0.0_1527839143020_0.7187774772199584"},"_hasShrinkwrap":false,"publish_time":1527839143269,"_cnpm_publish_time":1527839143269,"_cnpmcore_publish_time":"2021-12-16T16:44:04.884Z"},"5.1.0":{"name":"babel-plugin-root-import","version":"5.1.0","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","files":["index.js","build"],"repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register","test-watch":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register --watch","lint-js":"eslint plugin","compile":"babel -d build/ plugin/"},"dependencies":{"slash":"^1.0.0"},"devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^5.0.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^3.2.0","eslint":"~2.1.0","mocha":"^2.2.5","sinon":"^1.15.4"},"gitHead":"c77afb1ebb7811c351eccced69993bf0a7f8f598","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@5.1.0","_shasum":"80ea1cd5945b463a5e3f7e204a69478c573e328c","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"michaelzoidl","email":"npm@michaelzoidl.com"},"dist":{"shasum":"80ea1cd5945b463a5e3f7e204a69478c573e328c","size":4851,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-5.1.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babel-plugin-root-import-5.1.0.tgz_1490096702605_0.9257870970759541"},"directories":{},"publish_time":1490096703625,"_hasShrinkwrap":false,"_cnpm_publish_time":1490096703625,"_cnpmcore_publish_time":"2021-12-16T16:44:05.115Z"},"5.0.0":{"name":"babel-plugin-root-import","version":"5.0.0","description":"Babel Plugin to enable relative root-import","author":{"name":"Michael J. Zoidl","email":"github@michaelzoidl.com"},"license":"MIT","main":"index.js","files":["index.js","build"],"repository":{"type":"git","url":"git+https://github.com/entwicklerstube/babel-plugin-root-import.git"},"scripts":{"test":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register","test-watch":"mocha test/*.spec.js --require config/mocha.js --compilers js:babel-core/register --watch","lint-js":"eslint plugin","compile":"babel -d build/ plugin/"},"dependencies":{"slash":"^1.0.0"},"devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.2.1","babel-eslint":"^5.0.0","babel-preset-es2015":"^6.1.18","babel-preset-stage-1":"^6.1.18","chai":"^3.2.0","eslint":"~2.1.0","mocha":"^2.2.5","sinon":"^1.15.4"},"gitHead":"b42f5616f64ebe364a9b1e43a992c971ee1d9e28","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","_id":"babel-plugin-root-import@5.0.0","_shasum":"2f76fd64bf84a0b5b7a7ba2a2b88ee19b5a8277f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"michaelzoidl","email":"npm@michaelzoidl.com"},"dist":{"shasum":"2f76fd64bf84a0b5b7a7ba2a2b88ee19b5a8277f","size":4795,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-5.0.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-root-import-5.0.0.tgz_1486717312862_0.12551962304860353"},"directories":{},"publish_time":1486717314800,"_hasShrinkwrap":false,"_cnpm_publish_time":1486717314800,"_cnpmcore_publish_time":"2021-12-16T16:44:05.332Z"},"1.1.1":{"name":"babel-plugin-root-import","version":"1.1.1","description":"Babel plugin to replace import paths to relative ones.","main":"./lib/index.js","author":{"name":"André Moraes","email":"andrelom@gmail.com"},"license":"MIT","homepage":"https://github.com/andrelom/babel-plugin-root-import#readme","files":["lib"],"keywords":["babel","node","plugin","relative","import"],"repository":{"type":"git","url":"git+https://github.com/andrelom/babel-plugin-root-import.git"},"bugs":{"url":"https://github.com/andrelom/babel-plugin-root-import/issues"},"scripts":{"prepublish":"npm run build","test":"mocha --recursive --compilers js:babel-register","build":"npm test && babel src -d lib"},"devDependencies":{"babel-cli":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-register":"^6.8.0","mocha":"^2.4.5"},"gitHead":"22f90093eaad29c9834777d08d75e9c5bdecf315","_id":"babel-plugin-root-import@1.1.1","_shasum":"9d22e09e683109774824f49d7896436ccb21e9cb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"andrelom","email":"andrelom@gmail.com"},"dist":{"shasum":"9d22e09e683109774824f49d7896436ccb21e9cb","size":2014,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-1.1.1.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-root-import-1.1.1.tgz_1475550882987_0.8357354088220745"},"directories":{},"publish_time":1475550883232,"_hasShrinkwrap":false,"_cnpm_publish_time":1475550883232,"_cnpmcore_publish_time":"2021-12-16T16:44:05.547Z"},"1.0.1":{"name":"babel-plugin-root-import","version":"1.0.1","description":"Babel plugin to replace import paths to relative ones.","main":"./lib/index.js","author":{"name":"André Moraes","email":"andrelom@gmail.com"},"license":"MIT","homepage":"https://github.com/andrelom/babel-plugin-root-import#readme","files":["lib"],"repository":{"type":"git","url":"git+https://github.com/andrelom/babel-plugin-root-import.git"},"bugs":{"url":"https://github.com/andrelom/babel-plugin-root-import/issues"},"scripts":{"prepublish":"npm run build","test":"mocha --recursive --compilers js:babel-register","build":"npm test && babel src -d lib"},"devDependencies":{"babel-cli":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-register":"^6.8.0","mocha":"^2.4.5"},"gitHead":"d6a00a96d46de39f0c0267f392f0b3f7833e0c0a","_id":"babel-plugin-root-import@1.0.1","_shasum":"f490d73a54d9cafa2bf4f3312a87322c74ec5afd","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"andrelom","email":"andrelom@gmail.com"},"dist":{"shasum":"f490d73a54d9cafa2bf4f3312a87322c74ec5afd","size":1674,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-1.0.1.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/babel-plugin-root-import-1.0.1.tgz_1464554871100_0.8042120835743845"},"directories":{},"publish_time":1464554873140,"_hasShrinkwrap":false,"_cnpm_publish_time":1464554873140,"_cnpmcore_publish_time":"2021-12-16T16:44:05.743Z"},"1.0.0":{"name":"babel-plugin-root-import","version":"1.0.0","description":"Babel plugin to replace import paths to relative ones.","main":"./lib/index.js","author":{"name":"André Moraes","email":"andrelom@gmail.com"},"license":"MIT","homepage":"https://github.com/andrelom/babel-plugin-root-import#readme","files":["lib"],"repository":{"type":"git","url":"git+https://github.com/andrelom/babel-plugin-root-import.git"},"bugs":{"url":"https://github.com/andrelom/babel-plugin-root-import/issues"},"scripts":{"prepublish":"npm run build","test":"mocha --recursive --compilers js:babel-register","build":"npm test && babel src -d lib"},"devDependencies":{"babel-cli":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-register":"^6.8.0","mocha":"^2.4.5"},"gitHead":"4989ffb5ff863da1c44908950c304d753ca81c35","_id":"babel-plugin-root-import@1.0.0","_shasum":"c44fc376666014d8262e136172e27e453b67d21e","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"andrelom","email":"andrelom@gmail.com"},"dist":{"shasum":"c44fc376666014d8262e136172e27e453b67d21e","size":1677,"noattachment":false,"key":"/babel-plugin-root-import/-/babel-plugin-root-import-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-root-import/download/babel-plugin-root-import-1.0.0.tgz"},"maintainers":[{"name":"greenjello","email":""},{"name":"michaelzoidl","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-root-import-1.0.0.tgz_1464553630515_0.14027654915116727"},"directories":{},"publish_time":1464553633044,"_hasShrinkwrap":false,"_cnpm_publish_time":1464553633044,"_cnpmcore_publish_time":"2021-12-16T16:44:05.961Z"}},"readme":"Babel plugin to add the opportunity to use `import` and `require` with root based\npaths.<br>\n[![Build Status](https://travis-ci.org/entwicklerstube/babel-plugin-root-import.svg?branch=master)](https://travis-ci.org/entwicklerstube/babel-plugin-root-import)\n[![Dependency Status](https://david-dm.org/entwicklerstube/babel-plugin-root-import.svg)](https://david-dm.org/entwicklerstube/babel-plugin-root-import)\n[![https://github.com/entwicklerstube/babel-plugin-root-import](https://img.shields.io/npm/dm/babel-plugin-root-import.svg)](https://www.npmjs.com/package/babel-plugin-root-import)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6f0e0cfda7214cd99ed22bb05ca2783e)](https://app.codacy.com/app/michaelzoidl/babel-plugin-root-import?utm_source=github.com&utm_medium=referral&utm_content=entwicklerstube/babel-plugin-root-import&utm_campaign=Badge_Grade_Dashboard)\n\n## Example\n\n```javascript\n// Without this plugin...\nimport SomeExample from '../../../some/example.js';\nconst OtherExample = require('../../../other/example.js');\nimport('../../../other/dynamic').then((mod) => {\n  // ...\n});\n\n// With babel-plugin-root-import you can write...\nimport SomeExample from '~/some/example.js';\nconst OtherExample = require('~/other/example.js');\nimport('~/other/dynamic').then((mod) => {\n  // ...\n});\n```\n\n## Install\n\nInstall with your package manager of choice.\n\n```sh\nnpm install babel-plugin-root-import --save-dev\n```\n\nor\n\n```sh\nyarn add babel-plugin-root-import --dev\n```\n\n## Use\n\nAdd it to your plugins array in your babel config, e.g. a `.babelrc` file.\n\n```javascript\n{\n  \"plugins\": [\n    [\"babel-plugin-root-import\"]\n  ]\n}\n```\n\nFor recent react-native versions, add it as a plugin in `babel.config.js`:\n\n```js\nmodule.exports = (api) => {\n  api.cache(true);\n\n  return {\n    plugins: ['babel-plugin-root-import'],\n  };\n};\n```\n\nFor the rest of this readme, it's implied that you'll configure the plugin as above\nwhen using react-native.\n\n## Config\n\nYou can configure this plugin by changing the string plugin name to a two-item array.\nNote that this array is nested inside the plugins array. Here's an example with the\ndefault config.\n\n```javascript\n  \"plugins\": [\n    [\n      \"babel-plugin-root-import\",\n      {\n        \"rootPathSuffix\": \"./\",\n        \"rootPathPrefix\": \"~/\"\n      }\n    ]\n  ],\n```\n\nMultiple rules may be specified by creating an object with\n`{ \"paths\": [firstItem, secondItem] }`, e.g.\n\n```javascript\n  \"plugins\": [\n    [\n      \"babel-plugin-root-import\",\n      {\n        \"paths\": [\n          {\n            \"rootPathSuffix\": \"./src/components\",\n            \"rootPathPrefix\": \"~/\"\n          },\n          {\n            \"rootPathSuffix\": \"./src/utils\",\n            \"rootPathPrefix\": \"!/\"\n          },\n        ]\n      }\n    ]\n  ],\n```\n\n### Custom rootPathSuffix\n\nBy default, the import will be relative to the working directory of the process\nrunning babel. Typically this means you'll have import paths like `~/src/foo.js`. You\ncan change the prefix of `\"./\"` to e.g. `\"src\"` or `\"src/js\"` with this config option.\n\n```javascript\n{\n  \"plugins\": [\n    [\"babel-plugin-root-import\", {\n      \"rootPathSuffix\": \"src/js\"\n    }]\n  ]\n}\n```\n\nThe paths `\"src/js\"` and `\"./src/js\"` behave the same.\n\n### Custom rootPathPrefix\n\nIf you don't like the `~` syntax you can use your own symbol (for example an `#`\nsymbol or `\\` or anything you want). Using `@` is not recommended as NPM allows `@` in\npackage names. `~` is the default since it's very unlikely to conflict with anything\n(and wouldn't be expanded to HOME anyway).\n\n```javascript\n{\n  \"plugins\": [\n    [\"babel-plugin-root-import\", {\n      \"rootPathPrefix\": \"#/\"\n    }]\n  ]\n}\n\n// Now you can use the plugin like this\nimport foo from '#/my-file';\n```\n\nIf you set it to e.g. `\"#/\"` then it'll require the slash in the import path.\n\n### Custom root\n\nBy default everything is resolved relative to the current working directory. You can\nchange this with the `root` config option. To use it effectively, you'll need to\nconfigure babel with one of the JavaScript config file variants, rather than JSON.\n\nFor example, the following `.babelrc.js` file causes imports to resolve relative to\nthe directory `.babelrc.js` is in.\n\n```js\nconst rootImportOpts = {\n  root: __dirname,\n  rootPathPrefix: '~/',\n  rootPathSuffix: 'src/js',\n};\n\nmodule.exports = {\n  plugins: [['babel-plugin-root-import', rootImportOpts]],\n};\n```\n\n<details>\n\n<summary>\n\n`babel.config.js`\n\n</summary>\n\n```js\nconst rootImportOpts = {\n  root: __dirname,\n  rootPathPrefix: '~/',\n  rootPathSuffix: 'src/js',\n};\n\nmodule.exports = (api) => {\n  api.cache(true);\n\n  const plugins = [['babel-plugin-root-import', rootImportOpts]];\n\n  return { plugins };\n};\n```\n\n</details>\n\n<details>\n\n<summary>\n\nFunction root variant\n\n</summary>\n\nThis `.babelrc.js` aliases `@/foo` to `./internals/foo.js` since it's always relative\nto the file doing the import (contrived example).\n\n```js\nconst rootImportOpts = {\n  root: (sourcePath) => path.dirname(sourcePath),\n  rootPathPrefix: '@/',\n  rootPathSuffix: 'internals',\n};\n\nmodule.exports = {\n  plugins: [['babel-plugin-root-import', rootImportOpts]],\n};\n```\n\n</details>\n\n### Transform paths for custom functions\n\nIf you have the need to transform paths also for other function calls you can\nconfigure them. But please be aware that this is kind of error prone because custom\nfunction names in Javascript are not static and can differ.\n\n```javascript\n{\n  \"plugins\": [\n    [\"babel-plugin-root-import\", {\n      \"functions\": [\"jest.mock\"]\n    }]\n  ]\n}\n\n// Now you can use the plugin also for jest.mock calls:\njest.mock('~/myfile')\n```\n\n### Don't let ESLint be confused\n\nIf you use [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import)\nto validate imports it may be necessary to instruct ESLint to parse root imports. You\ncan use\n[eslint-import-resolver-babel-plugin-root-import](https://github.com/unconfident/eslint-import-resolver-babel-plugin-root-import)\n\n```json\n  \"settings\": {\n    \"import/resolver\": {\n      \"babel-plugin-root-import\": {}\n    }\n  }\n```\n\nYou may also specify a prefix/suffix if it doesn't correctly find your babel config.\n\n```json\n  \"settings\": {\n    \"import/resolver\": {\n      \"babel-plugin-root-import\": {\n        \"rootPathPrefix\": \"~\",\n        \"rootPathSuffix\": \"src\"\n      }\n    }\n  }\n```\n\n### Don't let Flow be confused\n\nIf you use Facebook's [Flow](https://flowtype.org/) for type-checking it is necessary\nto instruct it on how to map your chosen prefix to the root directory. Add the\nfollowing to your `.flowconfig` file, replacing `{rootPathPrefix}` with your chosen\nprefix (minus a trailing slash if any) and `{rootPathSuffix}` with your chosen suffix.\n\n```\n[options]\nmodule.name_mapper='^{rootPathPrefix}/\\(.*\\)$' -> '<PROJECT_ROOT>/{rootPathSuffix}/\\1'\n```\n\n### Don't let VSCode be confused\n\nFor features like go-to-definition, VSCode needs to be able to resolve\n`require`/`import` paths to files on disk. This only works with one `rootPathSuffix`,\nbut you may define multiple `rootPathPrefix` entries.\n\n```json\n{\n  \"compilerOptions\": {\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"{rootPathPrefix}/*\": [\"src/*\"]\n    }\n  }\n}\n```\n\nFor example, with `~/x/y.js` -> `./src/x/y.js`:\n\n```json\n{\n  \"compilerOptions\": {\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"~/*\": [\"src/*\"]\n    }\n  }\n}\n```\n\n## FYI\n\nWebpack delivers a similar feature, if you just want to prevent end-less import\nstrings you can also define `aliases` in the `resolve` module, at the moment it\ndoesn't support custom/different symbols and multiple/custom suffixes.\n[READ MORE](http://xabikos.com/2015/10/03/Webpack-aliases-and-relative-paths/)\n\n### Want to revert back to relative paths?\n\nSometimes tooling might not be up to scratch, meaning you lose features such as\nnavigation in your IDE. In such cases you might want to revert back to using relative\npaths again. If you have a significant amount of files, it might be worth looking into\n[tooling](https://www.npmjs.com/package/convert-root-import) to help you with the\nconversion.\n\n## Change Log\n\n#### 6.4.1 - 2019-07-18\n\n- fixes unicode paths on windows\n\n#### 6.4.0 - 2019-07-18\n\n- add support for require.resolve\n- add support to configure additional require-like functions\n\n#### 6.3.0 - 2019-07-17\n\nAdds 'root' config option.\n\n#### 6.2.0 - 2019-05-09\n\n- Remove the 2 characters restriction\n\n#### 6.1.0 - 2018-06-23\n\n- Supports babel 7\n\n#### 5.0.0 - 2017-02-10\n\n- More consistent name: babel-plugin-root-import\n  [#63](https://github.com/entwicklerstube/babel-plugin-root-import/issues/63)\n- Renamed everything\n- Publish with new name on [npm](babel-plugin-root-import)\n\n#### 4.1.5 - 2016-11-17\n\n- Compile new version and release again\n\n#### 4.1.4 - 2016-11-15\n\n- Improve support for relative paths (e.g. referencing parent folders via ../) (thanks\n  to [@Hizoul](https://github.com/hizoul))\n\n#### 4.1.3 - 2016-09-14\n\n- Support paths (thanks to [@sivael](https://github.com/sivael))\n\n#### 4.1.0 - 2016-08-20\n\n- Use relative paths instead of absolute ones (thanks to\n  [@nescalante](https://github.com/nescalante))\n\n#### 4.0.0 - 2016-06-29\n\n- Almost everything changed, thanks to [@sheepsteak](https://github.com/sheepsteak),\n  [@gingur](https://github.com/gingur), [@olalonde](https://github.com/olalonde)\n\n#### 3.2.2 - 2016-02-20\n\n- Fix custom suffix in path, missing `/` in generated paths\n\n#### 3.2.0 - 2016-02-19\n\n- Support\n  [Windows-Filesystem](http://superuser.com/questions/176388/why-does-windows-use-backslashes-for-paths-and-unix-forward-slashes/176395#176395)\n- Add possibility to configure a custom rootPath-Symbol (instead of `~` you can use\n  whatever you like)\n\n#### 3.1.0 - 2015-12-01\n\n- Add possibility config the custom root path\n\n#### 3.0.1 - 2015-11-30\n\n- Updated plugin to new babel6 API\n- Splitted tests and functions into two scopes with single tests\n- Removed the \"extra-root\" param for the .babelrc since this is no yet supported in\n  babel6\n\n#### 2.0.1 - 2015-11-15\n\nBreaking Change to Babel 5\n\n- Updated to Babel 6\n- Added integration tests\n\n#### 1.0.1 - 2015-08-07\n\n- Added / updated tests\n- Implemented ESlint\n","_attachments":{},"homepage":"https://github.com/entwicklerstube/babel-plugin-root-import#readme","bugs":{"url":"https://github.com/entwicklerstube/babel-plugin-root-import/issues"},"license":"MIT"}