Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.69 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.69 KB

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.