Reading Twine Data
Use the javascript library to access twine data from an HTTP api
Prerequisites
Create a project
mkdir hello-twine && cd hello-twine
npm init{
"name": "hello-twine",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}Install twine libraries
Code
Whole script
Last updated