open-index/open-npm huggingface dataset:
npm package: @mightymerge/client
Description: Importer client for Mighty Merge
Author: Mighty Merge
Latest version: 0.3.0

# Importer client for MightyMerge.io

A client to embed Merge Merge CSV Importer tool

## Install

npm:

```bash
npm i @mightymerge/client --save
```

browser:

```html
<script src="https://unpkg.com/@mightymerge/client/dist/mightymerge-client.min.js"></script>
```

## Usage

```javascript
import mightymergeClient from '@mightymerge/client'

var importer = mightymergeClient({
  schemaKey: 'SCHEMA_KEY',
})

importer.open({
  schema: {
    headers: [
      {
        text: {
          label: 'name',
          display: 'Name',
          maxLength: 55,
          required: true,
        },
      },
      // ...etc
    ],
  },
  chunk: function (chunk) {
    for (var i = 0; i < chunk.records.length; i++) {
      if (chunk.records[i].valid == true) {
        // do something with valid record
      }
    }
  },
  complete: function () {
    // do something on complete
  },
})
```
npm package: @mightyminds/sdk
Description: Mightyminds SDK
Author: John Leonard Tubig
Latest version: 0.6.0-alpha.0

[![js-semistandard-style](https://cdn.rawgit.com/flet/semistandard/master/badge.svg)](https://github.com/Flet/semistandard)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

# Mighty Minds SDK

Mighty minds is a crowd-funding platform designed to help students.
This is the Javascript SDK for developing mightyminds app.

## Installation and Usage

```sh
$ cd <project-directory>
$ yarn add fireabse @mightyminds/sdk
```

```javascript
import sdk from '@mightyminds/sdk';

// initialize the sdk
const firebaseConfig = {
  apiKey: 'some-api-key',
  databaseURL: 'some-database-url',
  // ...other configs
};

sdk.initilize({ firebaseConfig });

// observe the current user
sdk.auth().currentUser$(console.log);

// signin
sdk.auth().signin('emailandpassword', { email: 'my@email.com', password: 'some-passwrd' })
```

## Services

- accounts - `sdk.accounts()`
- auth - `sdk.auth()`
- beneficiaries - `sdk.beneficiaries()`
- core - `sdk.core()`
- fundings - `sdk.fundings()`
- timelines - `sdk.timelines()`

*see docs for more info*

## Related npm modules

- `@mightyminds/sdk-vue` - vue-plugin implemented sdk that integrates well with vuex (store/state-persistence) and vue-router (guards)

```sh
$ cd <project-directory>>
$ yarn add vue vuex vue-router firebase @mightyminds/{sdk,sdk-vue}
```

```javascript
import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
import Sdk from '@mightyminds/sdk-vue';

const store = new Vuex();
const router = new VueRouter();

Vue.use(Sdk, { store, router })
```
npm package: @mightyminds/sdk-vue
Description: Mightyminds SDK Vue adapter
Author: John Leonard Tubig
Latest version: 0.5.0-alpha.0

[![js-semistandard-style](https://cdn.rawgit.com/flet/semistandard/master/badge.svg)](https://github.com/Flet/semistandard)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

# Mightyminds SDK Vue bindings

## Installation

```sh
$ cd <project-directory>>
$ yarn add vue vuex vue-router firebase @mightyminds/{sdk,sdk-vue}
```

## Usage

```javascript
import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
import sdk from '@mightyminds/sdk-vue';

const store = new Vuex();
const router = new VueRouter();

// initialize the sdk
const config = {
  store,
  router,
  firebaseApp: firebase.app() // or firebaseConfig: { ...config }
  // ...other configs
};

Vue.use(sdk, config)
```

```javascript
// routes
export const routes = [
  {
    path: '/',
    // no lazy loading (above-the-fold)
    component: require('../statics/Home').default,
    meta: { onLogin: '/dash' } // will be redirected to 'dash' when currentUser != null
  },
  {
    path: '/dash',
    children: require('../dash/routes').routes,
    component: () => import(/* webpackChunkName: 'dash' */ '../dash'),
    meta: { requiresAuth: true, onLogout: '/', signinUsingQueryToken: 'token', force: false } // needs currentUser != null; if currentUser == null, redirect to '/'; if has query token, signInUsingCustomToken using the token in query key 'token'. if force, signInUsingCustomToken even if already signed in
  },
  {
    path: '*',
    redirect: '/'
  }
];
```

```javascript
// dash/index.vue
<template lang="pug">
  v-layout(column)
    //- navbar
    v-btn(@click="signout" color="red" dark) signout

    //- content
    v-content
      //- isLoggedIn and currentUserId will also be injected to every component
      h1.display-1 CurrentUser's id: {{ currentUserId }}
      
      //- footer
      v-footer
        span footer here
</template>

<script>
export default {
  mounted () {
    // isLoggedIn and currentUserId will also be injected to every component
    console.log('currentUserId:', this.currentUserId);
  },
  methods: {
    signout () {
      // the core sdk will be injected in this.$mc of all components
      this.$mc.auth().signout();
    }
  }
};
</script>

// statics/Home.vue
<template lang="pug">
  v-layout(row)
    v-btn(:loading="loading" @click="signin" color="primary") signin test
</template>

<script>
export default {
  data: () => ({ loading: false }),
  mounted () {
    this.sub = this.$mc.auth().currentUser$.subscribe(() => {
      this.loading = false;
    });
  },
  beforeDestroy () {
    if (this.sub) this.sub.unsubscribe();
  },
  methods: {
    signin () {
      this.loading = true;
      this.$mc.auth().signin('local', { email: 'test@gmail.com', password: 'password' });
    }
  }
};
</script>
```
npm package: @migiwa-ya/data-validator
Description: Lightweight parser + runtime validator for YAML / front-matter JSON-like data, extracted from StaticQL.
Latest version: 0.1.2

# @migiwa-ya/data-validator

> Lightweight parser & runtime validator for Markdown front-matter / YAML / JSON-like data.

## Install

```bash
npm i -D @migiwa-ya/data-validator
```