open-index/open-npm huggingface dataset:
npm package: @publici/fec-loader
Description: Loads FEC data into a database
Latest version: 1.0.0-alpha.11

# fec-cli

A set of flexible command line utilities designed to discover, convert and load raw FEC filings into a database in a fast, streaming manner.

`fec` is about nine times faster than similar solutions. For example, on a recent MacBook Air, a 2.3 gigabyte ActBlue filing parses in three minutes instead of 23 minutes.

It requires [Node](https://nodejs.org/). It uses [fec-parse](https://github.com/PublicI/fec-parse).

## Try

To try converting a filing to newline-separated JSON without installing fec-loader, paste the following into a terminal:
```bash
FILING_ID=1283013; curl -s "https://docquery.fec.gov/dcdev/posted/"$FILING_ID".fec" | npx -p github:PublicI/fec-loader#subcommands convert $FILING_ID > $FILING_ID".ndjson"
```
## Install

To install:
```bash
npm install -g github:PublicI/fec-loader#subcommands
```
## Setup

To set up a Postgres database for FEC filings and the environment variables needed to connect:
```bash
export PGHOST=<database host> PGDATABASE=<database name> PGUSER=<database user> PGPASSWORD=<database password>
fec init
```

## Use

To load a filing from the FEC into a Postgres database, run:
```bash
export PGHOST=<database host> PGDATABASE=<database name> PGUSER=<database user> PGPASSWORD=<database password>
FILING_ID=1283013; curl -s "https://docquery.fec.gov/dcdev/posted/"$FILING_ID".fec" | fec convert $FILING_ID --format=psql | psql
```

To list the filings available from the FEC's RSS feed run:
```bash
fec list --rss
```

To load the most recent five filings from the FEC's RSS feed, run:

```bash
for url in $(fec list --rss --headers=false --columns=fec_url --format=tsv | head -n 5); do FILING_ID=$(echo $url | tr -dc '0-9'); curl -s "https://docquery.fec.gov/dcdev/posted/"$FILING_ID".fec" | fec convert $FILING_ID --format=psql | psql -v ON_ERROR_STOP=on --single-transaction; done
```

To get just a summary line as JSON:
```bash
FILING_ID=1283013; curl -s "https://docquery.fec.gov/dcdev/posted/"$FILING_ID".fec" | head -n 10 | fec convert | sed -n 2p
```
npm package: @publicissapient/authorizationutil
Description: Simplistic authorization management - alternative to heavy (though robust) solutions
Author: Joe Carpenito
Latest version: 1.4.8

# Authorization Util

![unit tests](https://github.com/PublicisSapient/authorization-util/actions/workflows/node.js.yml/badge.svg)

![minified](https://img.shields.io/bundlephobia/min/@publicissapient/authorizationutil)

Simplistic authorization management - alternative to heavy (though much more robust) solutions. The core idea is that a user has already been _authenticated_ (like having a JWT, for example), and we now need to effectively manage the _authorization_ for whatever role they may have.

Most simply put, this is intended to allow an initial configuration of mapping authorizations to a set of roles that are available. The functionality is a very small subset of what you may get from something like [CASL](https://casl.js.org/v5/en/), but with a miniscul footprint and zero dependencies. If all you need are the _very_ basics, this may suit your needs.

## Getting going...

```javascript
import AuthorizationService from ".";

/**
 * Role definitions somewhere on app initialization
 */
AuthorizationService.defineRole("admin", [
  "can_create_profile",
  "can_edit_profile",
  "can_view_profile",
]);
AuthorizationService.defineRole("employee", [
  "can_edit_profile",
  "can_view_profile",
]);
AuthorizationService.defineRole("customer", ["can_view_profile"]);

/**
 * Example usage:
 *
 * 1. The create button will only render for the admin role
 * 2. The edit button will only render for admin and employee roles
 * 3. The description will display for all three roles
 */
render(
  <>
    {AuthorizationService.userCan(currentRole, "can_create_profile") && (
      <Button>Create Profile</Button>
    )}

    {AuthorizationService.userCan(currentRole, "can_edit_profile") && (
      <Button>Edit Profile</Button>
    )}

    {AuthorizationService.userCan(currentRole, "can_view_profile") && (
      <p>A profile description...</p>
    )}
  </>
);
```

## Test

```shell
npm run test

# we also have a ci specific test command that outputs coverage
npm run test-ci
```

## Typescript

Typescript was introduced as of v1.2.0.

---

![dennis-nedry-gif-7](https://user-images.githubusercontent.com/2083532/175975750-8feff818-b610-41ba-ac5e-a39d9b28fc8f.gif)
npm package: @publicissapientparis/vue-cli-plugin-ssr
Description: Turn your app into an isomorphic SSR app!
Author: Guillaume Chau
Latest version: 0.5.3


<p align="center">
  <img src="./docs/.vuepress/public/logo.png">
</p>

# @akryum/vue-cli-plugin-ssr

[![npm](https://img.shields.io/npm/v/@akryum%2Fvue-cli-plugin-ssr.svg) ![npm](https://img.shields.io/npm/dm/@akryum%2Fvue-cli-plugin-ssr.svg)](https://www.npmjs.com/package/@akryum%2Fvue-cli-plugin-ssr)
[![vue-cli3](https://img.shields.io/badge/vue--cli-3.x-brightgreen.svg)](https://github.com/vuejs/vue-cli)

Simple Server-Side-Rendering plugin for Vue CLI (Work-in-Progress)

<p align="center">
  <a href="https://www.patreon.com/akryum" target="_blank">
    <img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patreon">
  </a>
</p>

<br>

<h3 align="center"><a href="https://vue-cli-plugin-ssr.netlify.com/">Documentation</a></h3>

<br>

## Sponsors

### Silver

<p align="center">
  <a href="https://vueschool.io/" target="_blank">
    <img src="https://vueschool.io/img/logo/vueschool_logo_multicolor.svg" alt="VueSchool logo" width="200px">
  </a>
</p>

### Bronze

<p align="center">
  <a href="https://vuetifyjs.com" target="_blank">
    <img src="https://cdn.discordapp.com/attachments/537832759985700914/537832771691872267/Horizontal_Logo_-_Dark.png" width="100">
  </a>
</p>

<br>

## About

**:star: Features:**

- Automatic conversion of your project to SSR
- Integrated express server
- Vuex store
- Async routes
- [vue-cli-plugin-apollo](https://github.com/Akryum/vue-cli-plugin-apollo) support
- Custom middlewares

<br>

**:rocket: Roadmap:**

- Automatic conversion of vuex modules to `state () {}`
- Integration with CLI UI
npm package: @publicmint/widget-sdk
Description: SDK for the Public Mint Widget.
Author: Public Mint
Latest version: 2.2.0

# @publicmint/widget-sdk

SDK for the Public Mint widget.

## Table of contents:

- [Installation](#installation)
- [Usage](#usage)

## Installation

Using npm:

```sh
npm install @publicmint/widget-sdk
```

Using yarn:

```sh
yarn add @publicmint/widget-sdk
```

## Usage

See the [documentation](./docs/usage.md) for information on how to use this SDK.

## Usage

### Initialization

Initialize the SDK by creating an instance of the `PmintWidgetSdk` class:

```js
import PmintWidgetSdk from '@publicmint/widget-sdk';

const pmint = new PmintWidgetSdk();
```

### Widgets

#### Deposit widget

To show the deposit widget, call the `renderAddFunds` method.
This method returns a promise that resolves with either `completed` or `canceled`.

```js
const status = await pmint.renderAddFunds({
  blockchain: 'publicmint',
  destinationAddress: address,
  locale: 'en'
});
```

#### Withdraw widget

To show the withdraw widget, call the `renderWithdraw` method.
This method returns a promise that resolves with either `completed` or `canceled`.

```js
import { withdraw } from '@publicmint/widget-sdk';
import PublicMintWeb3 from '@publicmint/publicmint-web3';

const status = await pmint.renderWithdraw({
  blockchain: 'publicmint',
  burn: options => {
    // Perform the blockchain operation.
    // When using the public mint blockchain use our `withdraw` utility:
    const web3 = new PublicMintWeb3();
    return withdraw(web3, { ...options, privateKey });
  },
  locale: 'en',
  originAddress: address
})
```

#### Account widget

To show the account widget, call the `renderAccount` method.

```js
await pmint.renderAccount({ locale: 'en' });
```

### Handling user sessions

There are three events that you can listen to to be notified of user sessions:
`login`, `logout` and `userUpdate`:

```js
// Listen to login events.
pmint.addListener('login', user => {
});

// Listen to logout events.
pmint.addListener('logout', () => {
});

// Listen to updates to the user profile.
pmint.removeListener('userUpdate', user => {
});
```

To check if there is a user logged in and get the user's profile, call the `getUser` method:

```js
const user = await pmint.getUser();
```

To terminate the user's session, call the `logout` method:

```js
await pmint.logout();
```