{"_id":"@atlassian/amd-conversion-analyser","name":"@atlassian/amd-conversion-analyser","dist-tags":{"latest":"1.9.0"},"versions":{"1.9.0":{"name":"@atlassian/amd-conversion-analyser","version":"1.9.0","license":"Apache-2.0","description":"This tool helps you analyse the status of your AMD conversion.","main":"dist/index.js","scripts":{"compile":"babel -d dist/ src/","preversion":"npm run compile","prepublishOnly":"npm run compile","test":"c8 mocha 'test/**/*-test.js' 'test/**/*-tests.js'","lint":"eslint -c eslint.config.js ."},"bin":{"amd":"bin/amd.js"},"repository":{"type":"git","url":"git+https://bitbucket.org/atlassian/amd-conversion-analyser.git"},"publishConfig":{"registry":"https://packages.atlassian.com/api/npm/npm-public/"},"author":{"name":"Atlassian"},"contributors":[{"name":"Dick Wiggers","email":"hwiggers@atlassian.com"},{"name":"Chris 'Daz' Darroch","email":"cdarroch@atlassian.com"},{"name":"Maciej Rzymski","email":"mrzymski@atlassian.com"},{"name":"Mateusz Szerszynski","email":"mszerszynski@atlassian.com"}],"dependencies":{"acorn":"^8.0.5","acorn-globals":"^6.0.0","acorn-walk":"^8.0.2","array-uniq":"^1.0.2","colors":"^1.4.0","escape-regex-string":"^1.0.4","globals":"^10.1.0","globby":"^11.1.0","lodash":"^4.17.21","minimist":"^1.2.8","winston":"^3.19.0"},"devDependencies":{"@babel/cli":"^7.27.0","@babel/core":"^7.27.0","@babel/preset-env":"^7.27.0","babel-preset-minify":"^0.5.2","c8":"^10.1.3","chai":"^4.5.0","chai-things":"^0.2.0","eslint":"^9.0.0","mocha":"^11.7.5","rewire":"^7.0.0","sinon":"^21.0.0"},"engines":{"node":">=18","npm":">=10"},"overrides":{"diff":"^8.0.4","serialize-javascript":"^7.0.5"},"_id":"@atlassian/amd-conversion-analyser@1.9.0","bugs":{"url":"https://bitbucket.org/atlassian/amd-conversion-analyser/issues"},"homepage":"https://bitbucket.org/atlassian/amd-conversion-analyser#readme","_integrity":"sha512-jtA7F8Yt1qOkMlt1lu/L9a4SKJ1jirof9VMY04EA/bcdpcuKGdf0WvUCC41SiHpzwBVPvBNOY7gMUyVoZzXMVg==","_resolved":"/tmp/package-1-69e9e3a8-34a73642f7ab84e79e1fe439-1.tgz","_from":"file:/tmp/package-1-69e9e3a8-34a73642f7ab84e79e1fe439-1.tgz","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-jtA7F8Yt1qOkMlt1lu/L9a4SKJ1jirof9VMY04EA/bcdpcuKGdf0WvUCC41SiHpzwBVPvBNOY7gMUyVoZzXMVg==","shasum":"5f03155065600a0f652ebeb4e59fb69e3a45b654","tarball":"https://registry.npmjs.org/@atlassian/amd-conversion-analyser/-/amd-conversion-analyser-1.9.0.tgz","fileCount":27,"unpackedSize":84840,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGgjU0FpFL5fjIyf8MLPfnrmWTqnCn89LkkD7z5agv6DAiEAtm+CdwMh1KJ3R1IqtyxkFhlPe45p7kcWylnbFXKieGQ="}]},"_npmUser":{"name":"atlassianartifactteam","email":"eng-development-tooling-artifacts@atlassian.com"},"directories":{},"maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-artifacts@atlassian.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/amd-conversion-analyser_1.9.0_1776935852078_0.9209952265714416"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-23T09:17:31.951Z","1.9.0":"2026-04-23T09:17:32.255Z","modified":"2026-04-23T09:17:32.530Z"},"maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-artifacts@atlassian.com"}],"description":"This tool helps you analyse the status of your AMD conversion.","homepage":"https://bitbucket.org/atlassian/amd-conversion-analyser#readme","repository":{"type":"git","url":"git+https://bitbucket.org/atlassian/amd-conversion-analyser.git"},"contributors":[{"name":"Dick Wiggers","email":"hwiggers@atlassian.com"},{"name":"Chris 'Daz' Darroch","email":"cdarroch@atlassian.com"},{"name":"Maciej Rzymski","email":"mrzymski@atlassian.com"},{"name":"Mateusz Szerszynski","email":"mszerszynski@atlassian.com"}],"author":{"name":"Atlassian"},"bugs":{"url":"https://bitbucket.org/atlassian/amd-conversion-analyser/issues"},"license":"Apache-2.0","readme":"# AMD conversion analyser\n\nThis tool helps you analyse the status of your AMD conversion.\n\n[![build-status](https://bitbucket-badges.useast.atlassian.io/badge/atlassian/amd-conversion-analyser.svg)](https://bitbucket.org/atlassian/amd-conversion-analyser/addon/pipelines/home#!/)\n\n## Installation\n\n    npm install -g @atlassian/amd-conversion-analyser\n\n## Run\n\n    amd /your/source/dir <options>\n    \n## Options\n\n    --globals           // Show information about used globals in code\n    --globals-summary   // Show total information about used globals in code\n    --no-utf8           // Don't do pretty print\n    --no-summary        // Don't show the conversion summary\n    --no-files          // Don't list the files\n    --no-ok             // Don't show already converted files\n    --save <file>       // Save results to file\n    --config <file>     // Use this config file (absolute path only)\n    --idea              // Show a link to open the file directly in IntelliJ IDEA\n    --idea-globals      // Show a link to open the file directly in IntelliJ IDEA at the position of the found global\n    --file-log-level    // Set log level for amd conversion status (debug, info, warn, error); default: info\n\n## Example output\n\n    ./my-plugin/src/main/resources/content/js\n        ⚠ Application.js: Globals detected\n                49:20 jQuery \n                50:17 _.extend\n                230:87 _.extend\n        ✗ Trigger.js: Not an AMD module \n    ./my-plugin/src/main/resources/content/js/base\n        ✓ DarkFeatures.js\n        ✓ IssueLoaderService.js\n        ✗ init.js: Not an AMD module \n        ✓ LinksCapturer.js\n        ✓ MetadataService.js        \n        ⚠ ModelUtils.js: Globals detected\n                137:16 $ \n                140:16 _.extend\n                143:16 _.clone\n    =====================================\n    Files identified as AMD modules: 6\n    Files not converted: 2\n    Illegal globals found: 6\n    75% converted\n    \n## Configuration file\n\nThe configuration file is a **JS** file that helps you exclude files, folders and variables and set various other configuration options.\n \nIf not set using `--config <file>`, the default `config.js` is used. \n\n### Example configuration\n\nThis is the actual content from the default `config.js` file.\n\n    module.exports = {\n        \"patterns\": [\"**/*.js\"],\n        \"exclude\": {\n            \"patterns\": [\n                \"**/**-min.js\",\n                \"**/**.min.js\",\n                \"**/target/**\",\n                \"**/dist/**\"\n            ],\n            \"variables\": []\n        },\n        \"variableDisplaySize\": 128,\n        \"env\": {\n            \"browser\": true,\n            \"amd\": true,\n            \"qunit\": true\n        }\n    };\n\n### Configuration options\n\nThe following properties can be set on the configuration object.\n\n#### patterns\nType: `Array`\n\nDefault value: `['**/*.js']`\n\nAn array of strings, glob patterns, that is used to determine which files will be analysed.\n\n#### exclude.patterns\nType: `Array`\n\nDefault value: `[]`\n\nAn array of strings, glob patterns, that is used to determine which files will **not** be analysed.\n\n#### exclude.variables\nType: `Array`\n\nDefault value: `[]`\n\nAn array of strings that is used to filter global variables that will be excluded.\n\n#### env\nType: `Object`\n\nDefault value: `{}`\n\nAn object of identifiers from different JavaScript environments. Please see the [globals package](https://www.npmjs.com/package/globals) for a full list.\n\n#### variableDisplaySize\nType: `Integer`\n\nDefault value: `128`\n\nAn integer that is used to set the maximum variable length of a found global.\n    \n## Development\n    git clone git@bitbucket.org:atlassian/amd-conversion-analyser.git\n    \n    cd amd-conversion-analyser\n    \n    npm install\n    npm run compile\n\n    ./bin/amd.js /your/source/dir <options>\n    \n## Tips\n\nOpen the IDEA link to a file by pressing `CMD` + double click.\n    \n","readmeFilename":"README.md","_rev":"1-2915137856c393c4af43aa1dc1a8d152"}