{"_id":"@amrit_dev/package-lock-diff","_rev":"1-099b82258b60aac67cb10c99be0a02d4","name":"@amrit_dev/package-lock-diff","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@amrit_dev/package-lock-diff","version":"1.0.0","author":{"name":"Your Name"},"license":"MIT","_id":"@amrit_dev/package-lock-diff@1.0.0","maintainers":[{"name":"amrit_dev","email":"kumaramrit38@gmail.com"}],"bin":{"package-lock-diff":"cli.js"},"dist":{"shasum":"c330dfc9b9aa4a90b81ce15ded3e53be3c545d78","tarball":"https://registry.npmjs.org/@amrit_dev/package-lock-diff/-/package-lock-diff-1.0.0.tgz","fileCount":3,"integrity":"sha512-EfMfKE6LgBTSENttcKCGgkaFAqDnX8PYNP+YgOerFVtJ1jHLQ9DI3KyxK74gO05lWMQBGT+LZuwsPk/fg9hRRw==","signatures":[{"sig":"MEQCIArzST5tRl2mjDrtO06O+GLxliiSYSIllSgZZd9nzuGXAiAqAN23VdDD1GfWmw+iGxn22I/Urtv0UaCz7L2NCMzITw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3488},"main":"comparePackageLocks.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"amrit_dev","email":"kumaramrit38@gmail.com"},"_npmVersion":"10.2.3","description":"A tool to compare two package-lock.json files","directories":{},"_nodeVersion":"18.19.0","dependencies":{"lodash":"^4.17.21"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/package-lock-diff_1.0.0_1723966192538_0.633209035648368","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@amrit_dev/package-lock-diff","version":"1.0.1","description":"A tool to compare two package-lock.json files","main":"comparePackageLocks.js","bin":{"package-lock-diff":"cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"lodash":"^4.17.21"},"author":{"name":"Your Name"},"license":"MIT","_id":"@amrit_dev/package-lock-diff@1.0.1","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-dhcYNqDseQexVroWW2qhRQWC0VAgd7AS7exUKM6sDxziCFMNvzZ79ZSTczj4nK3yJRXjxhICVawZlJ8dgiHqsg==","shasum":"5c85b64b39eef1caed08e2fa446ec5178086c74a","tarball":"https://registry.npmjs.org/@amrit_dev/package-lock-diff/-/package-lock-diff-1.0.1.tgz","fileCount":4,"unpackedSize":10391,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID00reTMK1JIaqC7mzjyzVZjCfLwkI9ryVcAl+OmSePuAiEAzVOEyODiKm2lpP53Slb6dV60kOJY5e2j4TsG5DRKrJw="}]},"_npmUser":{"name":"amrit_dev","email":"kumaramrit38@gmail.com"},"directories":{},"maintainers":[{"name":"amrit_dev","email":"kumaramrit38@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/package-lock-diff_1.0.1_1724945260731_0.9746415979829512"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-18T07:29:52.423Z","modified":"2024-08-29T15:27:41.094Z","1.0.0":"2024-08-18T07:29:52.687Z","1.0.1":"2024-08-29T15:27:40.911Z"},"author":{"name":"Your Name"},"license":"MIT","description":"A tool to compare two package-lock.json files","maintainers":[{"name":"amrit_dev","email":"kumaramrit38@gmail.com"}],"readme":"# Getting Started with Create React App\r\n\r\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\r\n\r\n## What Does This Package Do?\r\n\r\nThis package is a React project bootstrapped with Create React App, designed for building modern web applications. In addition to the standard features provided by Create React App, this project includes a utility for comparing two `package-lock.json` files. This utility helps identify differences between dependencies, versions, and other metadata in two separate `package-lock.json` files, which can be useful for maintaining consistency across different environments or branches.\r\n\r\n## Comparing Two `package-lock.json` Files\r\n\r\n### Task: Compare Two `package-lock.json` Files\r\n\r\nThis project includes a script that allows you to compare two different `package-lock.json` files. The files can be located in different directories, making it easy to identify any differences between them. This can be particularly useful when:\r\n\r\n- Comparing the dependency trees of different branches.\r\n- Checking for discrepancies between development and production environments.\r\n\r\n### How to Use\r\n\r\nTo compare two `package-lock.json` files, follow these steps:\r\n\r\n1. Ensure that both `package-lock.json` files you want to compare are available on your local system.\r\n\r\n2. Run the comparison script by using the following command:\r\n\r\n   ```bash\r\n   npm run compare-lock-files --path1=/path/to/first/package-lock.json --path2=/path/to/second/package-lock.json\r\n\r\n\r\n## Prerequisites\r\n\r\nBefore you begin, ensure you have met the following requirements:\r\n\r\n- You have installed Node.js and npm.\r\n- You have a basic understanding of JavaScript, React, and web development.\r\n\r\n## Project Structure\r\n\r\nA brief overview of the project's structure:\r\n\r\n```\r\nmy-app/\r\n├── node_modules/\r\n├── public/\r\n├── src/\r\n│   ├── components/\r\n│   ├── assets/\r\n│   ├── App.js\r\n│   ├── index.js\r\n│   └── ...\r\n├── .gitignore\r\n├── package.json\r\n├── README.md\r\n└── ...\r\n```\r\n\r\n- **public/**: Static files like `index.html`, images, and other assets.\r\n- **src/**: Main source code, including React components, styles, and utilities.\r\n- **package.json**: Project metadata and dependencies.\r\n- **.gitignore**: Files and directories ignored by Git.\r\n\r\n## Available Scripts\r\n\r\nIn the project directory, you can run:\r\n\r\n### `npm install`\r\n\r\nInstalls the necessary dependencies for the project. Run this command before starting or building the project.\r\n\r\n### `npm start`\r\n\r\nRuns the app in development mode.Open [http://localhost:3000](http://localhost:3000) to view it in your browser.\r\n\r\n- The page will reload when you make changes to the code.\r\n- Lint errors and warnings will appear in the console.\r\n\r\n### `npm test`\r\n\r\nLaunches the test runner in interactive watch mode.Refer to the [running tests](https://facebook.github.io/create-react-app/docs/running-tests) section for more details.\r\n\r\n- Test files are generally placed under the `src/` directory with the `.test.js` or `.spec.js` extension.\r\n\r\n### `npm run build`\r\n\r\nBuilds the app for production in the `build` folder.This command optimizes the React app for the best performance:\r\n\r\n- React is bundled in production mode.\r\n- The build output is minified, and filenames include hashes for caching.\r\n\r\nYour app is now ready for deployment!\r\n\r\nFor more details, refer to the [deployment](https://facebook.github.io/create-react-app/docs/deployment) section.\r\n\r\n### `npm run eject`\r\n\r\n**Warning: Ejection is a one-way operation! Once you `eject`, you cannot go back!**\r\n\r\nThis command gives you full control over the project configuration by copying all dependencies and configurations into your project. You should only `eject` if necessary for advanced customizations.\r\n\r\n### `npm run lint`\r\n\r\nRuns the linter to check for code style and syntax errors.Configure the linter in `.eslintrc.js` according to your project's needs.\r\n\r\n### `npm run format`\r\n\r\nFormats the code according to the rules specified in `.prettierrc`.This ensures a consistent code style across the project.\r\n\r\n## Configuration\r\n\r\n### Environment Variables\r\n\r\nEnvironment variables can be configured in the `.env` file at the root of the project:\r\n\r\n```\r\nREACT_APP_API_URL=https://api.example.com\r\n```\r\n\r\nAccess these variables in your React code using `process.env.REACT_APP_API_URL`.\r\n\r\n### Proxy Setup\r\n\r\nTo avoid CORS issues during development, you can set up a proxy in the `package.json` file:\r\n\r\n```json\r\n\"proxy\": \"http://localhost:5000\"\r\n```\r\n\r\n### Code Splitting\r\n\r\nSplit your code into smaller bundles for improved performance.See the [code splitting](https://facebook.github.io/create-react-app/docs/code-splitting) documentation.\r\n\r\n### Analyzing Bundle Size\r\n\r\nUse `source-map-explorer` to analyze the bundle size:\r\n\r\n```bash\r\nnpm install -g source-map-explorer\r\nnpm run build\r\nnpx source-map-explorer 'build/static/js/*.js'\r\n```\r\n\r\nRefer to the [analyzing bundle size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) guide for more details.\r\n\r\n### Making a Progressive Web App (PWA)\r\n\r\nTransform your app into a PWA by following the [PWA guide](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app).\r\n\r\n## Advanced Configuration\r\n\r\nRefer to the [advanced configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) section for additional setup options, such as modifying Webpack or Babel configurations.\r\n\r\n## Deployment\r\n\r\nYour app can be deployed to various platforms such as GitHub Pages, Netlify, Vercel, or Heroku.Refer to the [deployment](https://facebook.github.io/create-react-app/docs/deployment) documentation for detailed instructions on deploying your app.\r\n\r\n### Continuous Integration\r\n\r\nYou can set up Continuous Integration (CI) to automate testing and deployment:\r\n\r\n- **GitHub Actions**: Use workflows to automate tests.\r\n- **Travis CI**: Integrate your repository for automated testing and deployment.\r\n\r\n## Troubleshooting\r\n\r\n### `npm run build` fails to minify\r\n\r\nIf the build fails due to minification issues, refer to the [troubleshooting guide](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) for potential solutions.\r\n\r\n### Common Issues\r\n\r\n- **Module not found**: Ensure that all dependencies are correctly installed by running `npm install`.\r\n- **CORS errors**: Set up a proxy or configure the server to allow CORS.\r\n\r\n## Learn More\r\n\r\nTo learn more about React and related technologies:\r\n\r\n- [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started)\r\n- [React documentation](https://reactjs.org/)\r\n- [JavaScript ES6+](https://developer.mozilla.org/en-US/docs/Web/JavaScript)\r\n- [Node.js](https://nodejs.org/)\r\n- [npm](https://www.npmjs.com/)\r\n","readmeFilename":"README.md"}