1.6.1 • Published 4 years ago

csv-to-quizlet v1.6.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

csv-to-quizlet

NPM module that creates a Quizlet set from a CSV file

The csv-to-quizlet module allows users to create Quizlet sets from a javascript array or a CSV file. It does not use the Quizlet API because the API does not support creating sets, only viewing them and has also "paused" issuing API keys since December 2018. Instead, the module uses a local browser to interact directly with the Quizlet UI.

You can read more about how csv-to-quizlet works in the dependencies section.

Install

npm i csv-to-quizlet --save

Usage

Simply pass all your configuration options to csv-to-quizlet.

This example uses dotenv to hide the username and password but you can pass these as strings or learn more about hiding your password here on our documentation.

// Require csv-to-quizlet
const csvToQuizlet = require("csv-to-quizlet");

// Define configuration options
const title = "My set title";
const values = ["term1", "definition1", "term2", "definiton2"];

// Load username and password using the dotenv package
require("dotenv").config();
const username = process.env.QUIZLET_USERNAME;
const password = process.env.QUIZLET_PASSWORD;

// Run
csvToQuizlet({ title, values, username, password });

Full documentation is on the GitHub Wiki.

Dependencies

csv-to-quizlet runs a browser on your computer using a package called nightmare.

Nightmare is a high-level browser automation library from Segment.

(Nightmare runs the browser on a framework called electron which you can interact with using node).

The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS.

csv-to-quizlet uses this local browser to interact directly with the Quizlet UI, instead of using APIs etc.

csv-to-quizlet also uses chalk for terminal styling.

Terminal string styling done right

See the how it works section on the documentation for more detail.

Dev dependencies

csv-to-quizlet uses eslint and prettier to enforce style rules. (prettier communicates with eslint using eslint-plugin-prettier and eslint-config-prettier).

It also uses jest to test the module as well as parcel to build and minify the code.

1.6.1

4 years ago

1.6.0

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.2.2

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.2.1

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago