csv-to-quizlet v1.6.1
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.
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago