Socket
Socket
Sign inDemoInstall

ink

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ink - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

lib/component.js

@@ -17,3 +17,3 @@ 'use strict';

if (typeof nextState === 'function') {
nextState = nextState(this.state);
nextState = nextState(this.state, this.props);
}

@@ -20,0 +20,0 @@

{
"name": "ink",
"version": "0.3.0",
"version": "0.3.1",
"description": "React for CLI",

@@ -13,3 +13,3 @@ "license": "MIT",

"engines": {
"node": ">=4"
"node": ">=6"
},

@@ -43,3 +43,3 @@ "scripts": {

"lodash.isequal": "^4.5.0",
"log-update": "^1.0.2",
"log-update": "^2.1.0",
"prop-types": "^15.5.10"

@@ -46,0 +46,0 @@ },

@@ -69,2 +69,5 @@ <h1 align="center">

- [ink-spinner](https://github.com/vadimdemedes/ink-spinner) - Spinner.
- [ink-console](https://github.com/ForbesLindesay/ink-console) - Render output from `console[method]` calls in a scrollable panel.
- [ink-image](https://github.com/kevva/ink-image) - Display images inside the terminal.
- [ink-checkbox-list](https://github.com/MaxMEllon/ink-checkbox-list) - Checkbox.

@@ -91,4 +94,21 @@

To ensure all examples work and you can begin your adventure with Ink, make sure to set up a JSX transpiler and set JSX pragma to `h`. Don' forget to import `h` into every file that contains JSX.
To ensure all examples work and you can begin your adventure with Ink, make sure to set up a JSX transpiler and set JSX pragma to `h`. You can use [`babel-plugin-transform-react-jsx`](https://babeljs.io/docs/plugins/transform-react-jsx/) to do this. For example, in `package.json`:
```json
{
"babel": {
"plugins": [
[
"transform-react-jsx",
{
"pragma": "h"
}
]
]
}
}
```
Don't forget to import `h` into every file that contains JSX:
```jsx

@@ -95,0 +115,0 @@ const {h} = require('ink');

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