open-index/open-npm huggingface dataset:
npm package: @mathewsfpereira/swcify
Description: SWC browserify transform
Author: Dmitry Yvanov
Latest version: 1.0.2

# swcify [![Build Status](https://travis-ci.org/dy/swcify.svg?branch=master)](https://travis-ci.org/dy/swcify)

[SWC](https://github.com/swc-project/swc) [browserify](https://github.com/substack/node-browserify) transform. Enables ES6/JSX/react for browserify times faster than babelify.

## Installation

```sh
$ npm install --save-dev swcify @swc/core
```

## Usage

### CLI

```sh
$ browserify script.js -t swcify > bundle.js
```

By default, swcify reads `.swcrc` file in the basedir with SWC config.

### Node

```javascript
var fs = require("fs")
var browserify = require("browserify")

var b = browserify("./script.js")
  .transform("swcify", config)
  .bundle()
  .pipe(fs.createWriteStream("bundle.js"));
```

The optional argument `config` can be an object with options for SWC.


## FAQ

### Why aren't files in `node_modules` being transformed?

This is the default browserify behavior.

A possible solution is to add:

```json
{
  "browserify": {
    "transform": ["swcify"]
  }
}
```

to the root of all your modules `package.json` that you want to be transformed.


### Why am I not getting source maps?

To use source maps, enable them in browserify with the [`debug`](https://github.com/substack/node-browserify#browserifyfiles--opts) option:

```js
browserify({debug: true}).transform("swcify");
```

```sh
$ browserify -d -t swcify
```
npm package: @mathflowjs/mathflow
Description: A lightweight library for evaluating mathematical expressions written in natural mathematical notation.
Author: Henry Hale
Latest version: 2.0.0

<div align=center>

![](https://github.com/mathflowjs/mathflow/blob/master/docs/public/logo.svg)

# Mathflow

_Simplifying Math, Empowering Code._

</div>

## Overview

Mathflow is a lightweight JavaScript library for evaluating mathematical expressions written in natural mathematical notation. It parses and computes standard arithmetic, trignometric functions, logarithms, and algebraic expressions exactly as you would write them on paper.

## Features

- **Natural syntax:** Write `2x + 3(y - 1)` instead of `2*x + 3*(y - 1)`. Both are supported anyway.
- **Mathematical functions:** Built-in support for `sin`, `cos`, `tan`, `log`, `sqrt`, `abs`, and more.
- **Variables:** Assign and use variables like `x = 5`, `y = 5x - 1`
- **Clean & modern syntax:** Readable and easy-to-write syntax for mathematical expressions.
- **AST-based parsing:** Proper order of operations and expression evaluation.
- **Lightweight:** Focused purely on mathematical computation without bloat.

## Use Cases

- Formula calculators and mathematical tools.
- Educational applications for learning mathematics.
- Basic scientific computing interfaces.
- Anywhere you need to evaluate user-input mathematical expressions safely.

## Documentation

To get started with Mathflow, read the [documentation here](https://mathflow.js.org).

## Contributing

Contributions are welcome to make Mathflow even better! Feel free to open issues or submit pull requests.

## License

This project is licensed under the [MIT License](https://github.com/mathflowjs/mathflow/blob/master/LICENSE.md)

Copyright &copy; 2024-present, [Henry Hale](https://github.com/henryhale)