Socket
Socket
Sign inDemoInstall

jsx-info

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-info - npm Package Compare versions

Comparing version 1.6.1 to 2.0.0

.eslintrc.js

11

CHANGELOG.md

@@ -0,1 +1,12 @@

# v2.0.0
- Added a full JS API for library usage
- Changed `--add-babel-plugin a --add-babel-plugin b` to `--babel-plugins a b`
- Changed `--ignore a --ignore b` to `--ignore a b`
- Changed `--files a --files b` to `--files a b`
- Changed `jsx-info a b c` to `jsx-info --components a b c`
- Changed `jsx-info` to `jsx-info --components "*"`
- Running `jsx-info` with missing arguments now enters interactive mode
- Removed the `--sort <...>` flag
# v1.6.1

@@ -2,0 +13,0 @@

38

package.json
{
"name": "jsx-info",
"version": "1.6.1",
"version": "2.0.0",
"description": "displays a report of JSX component and prop usage",
"bin": "src/jsx-info.js",
"main": "dist/src/api.js",
"bin": "dist/src/jsx-info.js",
"scripts": {
"prepack": "rm -rf dist && tsc",
"preversion": "npm test",
"postversion": "git push && git push --tags && npm publish",
"start": "node src/jsx-info.js",
"start": "tsc --watch",
"upgrade": "npm-check --update",
"test": "eslint src && prettier --list-different \"src/**/*.js\""
"test": "eslint src --ext .js,.ts --format unix && prettier --check \"src/**/*.{js,ts}\""
},

@@ -25,18 +27,24 @@ "repository": {

],
"author": "Brian Mock <brian@mockbrian.com>",
"author": "Brian Mock <brian@wavebeem.com>",
"license": "MIT",
"dependencies": {
"@babel/parser": "^7.4.3",
"@babel/traverse": "^7.4.3",
"chalk": "^2.4.2",
"commander": "^2.20.0",
"cosmiconfig": "^5.2.1",
"globby": "^9.2.0",
"ora": "^3.4.0"
"@babel/parser": "^7.12.3",
"@babel/traverse": "^7.12.1",
"@types/babel__traverse": "^7.0.15",
"@types/inquirer": "^7.3.1",
"chalk": "^4.1.0",
"commander": "^6.2.0",
"cosmiconfig": "^7.0.0",
"globby": "^11.0.1",
"inquirer": "^7.3.3",
"ora": "^5.1.0"
},
"devDependencies": {
"eslint": "^5.16.0",
"npm-check": "^5.9.0",
"prettier": "^1.17.0"
"@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0",
"eslint": "^7.12.1",
"npm-check": "^5.9.2",
"prettier": "^2.1.2",
"typescript": "^4.0.5"
}
}

@@ -21,3 +21,3 @@ # jsx-info

The intended workflow here is to run `jsx-info` and compare the data with your
prop-types or TypeScript/Flow type definitions to find discrepencies.
prop-types or TypeScript type definitions to find discrepencies.

@@ -80,2 +80,16 @@ ## Installation

## Documentation
You can use `jsx-info` as a JS library.
```js
const { analyze } = require("jsx-info");
const analysis = await analyze({
/* Options */
});
```
Options and data structures are documented in [api.ts][].
## Note

@@ -92,11 +106,2 @@

## Updates
My hope is to update `jsx-info` based on community feedback. It is **NOT**
available as a library to `require()` on npm, only as a command line program.
The current text output format is **NOT** stable and should not be parsed by
programs. If there is sufficient community interest, I may consider exposing the
code as a JS library for more customized use cases (such as parsing non-standard
syntax).
## Contributions

@@ -113,5 +118,5 @@

Copyright © [Brian Mock][] under the [MIT License][].
Copyright &copy; [Brian Mock][] under the [MIT License][].
[brian mock]: https://mockbrian.com
[brian mock]: https://www.wavebeem.com
[demonstration]: https://youtu.be/e_vtfYJW9aM

@@ -121,1 +126,2 @@ [code of conduct]: CODE_OF_CONDUCT.md

[proposals]: https://tc39.github.io/process-document/
[api.ts]: src/api.ts
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc