Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

4chanjs

NodeJS and Browser 4chan API client

Published6 Dec 2013
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

Build Status

NPM version

Information

Package4chanjs
DescriptionNodeJS and Browser 4chan API client
Node Version>= 0.4

Usage

var chan = require('4chanjs');

chan.boards(function(err, boards){
	// boards is an array
});

var random = chan.board('b');

random.catalog(function(err, pages){
	// catalog returns all pages from a board
	// but the list of threads only contains the OP
});

random.page(0, function(err, threads){
	// this will return an array of threads
});

random.threads(function(err, threads){
	// this is the same as catalog
	// but shows only thread ids
});

random.thread(495627174, function(err, posts){
	// this will return an array of posts
});

// sugar for getting an image url from a filename in a post
var img = random.image("somefile.jpeg");

WTF is this data

You can see an explanation on what the fields are here.

LICENSE

(MIT License)

Copyright (c) 2013 Fractal contact@wearefractal.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
request
Environment
{
  "local_name": "request",
  "alias": false,
  "peer_metadata": null
}
*runtime
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
*development
should
Environment
{
  "local_name": "should",
  "alias": false,
  "peer_metadata": null
}
*development
fixnode
Environment
{
  "local_name": "fixnode",
  "alias": false,
  "peer_metadata": null
}
*development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "0f6b97a2329e0b6dd01535b0ae81bb339aede774",
  "tarball": "https://registry.npmjs.org/4chanjs/-/4chanjs-0.1.0.tgz",
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuev/CRA9TVsSAnZWagAAxBMP/jnUQVfcPYUdBsdaxa1N\nSx2esNHcaEVNCa3yh/IVT/7YknTqEaWO+KeYKBFo8MqD5K8gtJZXqRBLhMQ5\nd4I0aU6UsGKFJ97YTm3gVJO1Si46sDhQ1UkX3atnt3Qoys4dKNGR+QGh7okE\nBzL7t05cACdZpEeW6nG8J6ms3VUvYjdlc7MlirrZfYqyjrx7E18r0StnvQg9\n9N4rXMAdHUe7EPtaHXVpwo9O3nLaLfIGHoOM+YWOAliH3Zd/TIgsXK/BkjQg\nTGEVtoteSMJaShVAQRrwmvgkvzOZOqTc2j2xNP3HvXsxFVpsgagqDgGKk5Wo\n+9RczOoUfzhm56GNC0qdYVhGcq4KonQxMjoLCR86LWYAg9m0HUdr0aw3c/tq\n3fo4iQCdR6UdEYvO0ouXfW5/Mt+gfHd8D2NjoywyGRoHAubEsUjnf6jmmt30\n2r+qSOmZJB0bV5MSRO9iQkEjNwQd8ZNICBMAgxSKwvo/d8lVwAXv0TuEaOfG\nv8+pLsP/Hexf+jT2Z+ZtZ1PeAdU7JD4mOD/esosZfbvZDWiWv+1JDR36MWbk\nE3o6TA82HFGs/Poq74iWMEIKHushqTglXQNU8v3kY+wG2aqYtMFq/bmoqgHJ\nG5T+KgK5vErKpkpstXFUn7+UwERCXkmod4TL4fETv8bT/Rqzp/JtdpQsWMEm\nP9VD\r\n=fHuc\r\n-----END PGP SIGNATURE-----\r\n",
  "integrity": "sha512-DHmIcA0OP2ofpVlHvzUSsAl4n8ewfOwGZMBenlr2c7YXqYoyMhZ5bh9N2IXyJYDbLD8K5PRbhKxfovbSQH60PA==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDhMJ5nZ5+gWemua5SSRldL+yixtpI8/DcSZj/LL9J1xQIgXHeR1fZYlLbSu34nR5gyaAvSaqlZXCXcTuEPJanUHBk="
    }
  ]
}

Repository

PENDING
wearefractal/4chanjs

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:07 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:03d0e74fc411332d1939d0e7f91f1bb5ce3e0464dd4c79ec8a35edcc223eda8a

Other collected versions

0.0.126 JulView all collected versions →