Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christianbundy/erowid-research-project
A research project analyzing the experiences available from Erowid in the interest of harm reduction.
https://github.com/christianbundy/erowid-research-project
Last synced: 17 days ago
JSON representation
A research project analyzing the experiences available from Erowid in the interest of harm reduction.
- Host: GitHub
- URL: https://github.com/christianbundy/erowid-research-project
- Owner: christianbundy
- Created: 2014-01-25T22:02:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-22T01:08:06.000Z (about 10 years ago)
- Last Synced: 2024-10-18T16:50:24.259Z (27 days ago)
- Language: JavaScript
- Homepage:
- Size: 709 MB
- Stars: 11
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Erowid Research Project
A research project analyzing the [experiences](http://www.erowid.org/experiences/exp_front.shtml) available from [Erowid](https://en.wikipedia.org/wiki/Erowid) in the interest of harm reduction.
## Usage
[Gunzip](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/gzip.1.html) the [gzipped](http://www.gzip.org/) [JSON](http://www.json.org/) [array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), [install dependencies](https://npmjs.org/doc/install.html), and run [Node](http://nodejs.org/) through [NPM](https://npmjs.org/).
```sh
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](https://github.com/christianbundy/erowid-research-project/blob/master/main.js). For example, removing anonymous authors from the data could be done with the following code.
```js
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](https://github.com/christianbundy/erowid-research-project/issues/new) if you have any questions, comments, or concerns. If you need to get a hold of me personally, I'm [@ChristianBundy](http://twitter.com/christianbundy) on Twitter, or you can email me at [[email protected]](mailto:[email protected]).
## Copyright
These experiences were downloaded from Erowid and are bound by their [copyright rules](http://www.erowid.org/general/about/about_copyrights.shtml).