Skip to content

A research project analyzing the experiences available from Erowid in the interest of harm reduction.

Notifications You must be signed in to change notification settings

christianbundy/erowid-research-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erowid Research Project

A research project analyzing the experiences available from Erowid in the interest of harm reduction.

Usage

Gunzip the gzipped JSON array, install dependencies, and run Node through NPM.

gunzip -c erowid.json.gz >! erowid.json
npm install
npm start

Once you've got everything installed, you should be able to do trival edits through main.js. For example, removing anonymous authors from the data could be done with the following code.

var erowid = require('./lib/erowid.js');

erowid(function (item) {
	if ('author' in item && 'name' in item.author) {
		if (item.author.name.toLowerCase() === 'anonymous') {
			delete item.author.name;
			return item;
		}
	}
}, true);

Contact

Please open an issue if you have any questions, comments, or concerns. If you need to get a hold of me personally, I'm @ChristianBundy on Twitter, or you can email me at [email protected].

Copyright

These experiences were downloaded from Erowid and are bound by their copyright rules.

About

A research project analyzing the experiences available from Erowid in the interest of harm reduction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published