Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parquet-wasm

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

parquet-wasm - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

node_bg.wasm

14

package.json

@@ -7,3 +7,3 @@ {

"description": "WebAssembly Parquet reader and writer.",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT OR Apache-2.0",

@@ -20,3 +20,11 @@ "repository": {

"LICENSE_APACHE",
"LICENSE_MIT"
"LICENSE_MIT",
"node.d.ts",
"node.js",
"node_bg.wasm",
"node_bg.wasm.d.ts",
"web.d.ts",
"web.js",
"web_bg.wasm",
"web_bg.wasm.d.ts"
],

@@ -31,2 +39,2 @@ "module": "parquet_wasm.js",

]
}
}

@@ -9,4 +9,14 @@ # `parquet-wasm`

## Usage
## Install
`parquet-wasm` is published to NPM. Install with
```
yarn add parquet-wasm
# or
npm install parquet-wasm
```
## API
### `readParquet`

@@ -36,2 +46,10 @@

## Using
`parquet-wasm` is distributed with three bindings for use in different environments.
- Default, to be used in bundlers such as Webpack: `import * as parquet from 'parquet-wasm'`
- Node, to be used with `require` in NodeJS: `const parquet = require('parquet-wasm/node');`
- ESM, to be used directly from the Web as an ES Module: `import * as parquet from 'parquet-wasm/web';`
## Example

@@ -92,4 +110,23 @@

## Credits
### Publishing
`wasm-pack` supports [three different targets](https://rustwasm.github.io/docs/wasm-pack/commands/build.html#target):
- `bundler` (used with bundlers like Webpack)
- `nodejs` (used with Node, supports `require`)
- `web` (used as an ES module directly from the web)
There are good reasons to distribute as any of these... so why not distribute as all three? `wasm-pack` doesn't support this directly but the build script in `scripts/build.sh` calls `wasm-pack` three times and merges the outputs. This means that bundler users can use the default, Node users can use `parquet-wasm/node` and ES Modules users can use `parquet-wasm/web` in their imports.
To publish:
```
bash ./scripts/build.sh
wasm-pack publish
```
## Acknowledgements
A starting point of my work came from @my-liminal-space's [`read-parquet-browser`](https://github.com/my-liminal-space/read-parquet-browser) (which is also dual licensed MIT and Apache 2).
@domoritz's [`arrow-wasm`](https://github.com/domoritz/arrow-wasm) was a very helpful reference for bootstrapping Rust-WASM bindings.

Sorry, the diff of this file is not supported yet

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