open-index/open-npm huggingface dataset:
npm package: @masqt/react-highlight
Description: React component for syntax highlighting [Masqt fork]
Author: Kiran Abburi
Latest version: 0.10.0

# react-highlight
React component for syntax highlighting using highlight.js

![Build Status](https://travis-ci.org/akiran/react-highlight.svg?branch=master)

### Installation
```bash
  npm install react-highlight --save
```

### Usage
#### Importing component
```js
  var Highlight = require('react-highlight');
```

#### Adding styles
Choose the [theme](https://highlightjs.org/static/demo/) for syntax highlighting and add corresponding styles of highlight.js
```css
  <link rel="stylesheet" href="/path/to/styles/theme-name.css">
```

The styles will most likely be in `node_modules/highlight.js/styles` folder.

Props:
* className: custom class name
* innerHTML: enable to render markup with dangerouslySetInnerHTML
* element:  render code snippet inside specified element

#### Syntax highlighting of single code snippet
Code snippet that requires syntax highlighting should be passed as children to Highlight component in string format. Language name of code snippet should be specified as className.

```html
<Highlight className='language-name-of-snippet'>
  {"code snippet to be highlighted"}
</Highlight>
```

#### Syntax highlighting of mutiple code snippets
Set `innerHTML=true` to highlight multiple code snippets at a time.
This is especially usefull if html with multiple code snippets is generated from preprocesser tools like markdown.

**Warning:** If innerHTML is set to true, make sure the html generated with code snippets is from trusted source.

```html
<Highlight innerHTML={true}>
  {"html with multiple code snippets"}
</Highlight>
```
npm package: @massalabs/create-react-app-massa
Description: massa's create-react-app template
Author: Massa Labs
Latest version: 1.3.5

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Example

The react project comes a basic dApp example with an already integrated and ready-to-use web3 client. The example allows deploying an already compiled to wasm smart contract to the massa `testnet` network. To try it, just run `npm i && npm run start`.

![Screenshot](./pics/screenshot.png)
npm package: @massalabs/massa-sc-std
Description: Massa standard library interfaces
Author: Massa Labs
Latest version: 4.0.2
Deprecated: This package has been deprecated. Please use @massalabs/massa-as-sdk instead

# Massa Smart-Contract Standard Library

This [NPM package](https://www.npmjs.com/package/massa-sc-std) provide handy wrappers (thanks to Near [assemblyscript-json](https://github.com/near/assemblyscript-json)) to WASM native functions exposed by [`massa-sc-runtime`](https://github.com/massalabs/massa-sc-runtime).

This repository is part of the default dependencies of [`massa-sc-template`](https://github.com/massalabs/massa-sc-template).
npm package: @massalabs/massa-sc-utils
Description: Massa smart contract utils
Author: Massa Labs
Latest version: 2.2.0

# massa-sc-utils
Massa utils for easy compilation and deployment of smart contract written in AssemblyScript

### Requirements

* NodeJS 14+
* npm / yarn (see package.json)

### Package commands

1. Run `yarn install` to install all deps
2. Run `yarn run build` to build distribution content
3. Run `yarn run test` to run integration and unit tests

### Smart contract utilities

The library provides methods for compiling smart contracts written in AssemblyScript with TypeScript, either via CLI or on the fly. With both methods, the returned values are a text, a binary and a base64 representation of the WASM.

Examples are shown below:

```ts
const SMART_CONTRACT_EXAMPLE = `export function add(x: number, y: number): number { return x+y };`;

const utils = new SmartContractUtils();

// compile smart contract from an assemblyscript file
const compiledScFromSource: CompiledSmartContract = await utils.compileSmartContractFromSourceFile({
    smartContractFilePath: "./helloworld.ts",
} as WasmConfig);

// compile smart contract from a .wasm file
const compiledScFromFile: CompiledSmartContract = await utils.compileSmartContractFromWasmFile("helloworld.wasm");

// compile smart contract on the fly from string
const compiledScFromString: CompiledSmartContract = await utils.compileSmartContractFromString(SMART_CONTRACT_EXAMPLE);
```
### Smart contract prompt scripts

The package also provides scripts that allow deploying a smart contract and a webpage (.zip file):

```
npm run deploy-website
```

and

```
npm run deploy-smart-contract
```