Catalog npm
Back to packageRELEASE DETAILS

1.0.1

npm

4chan-boards

Get a board's name and type given its short name (eg. `/b/`).

Published29 Jan 2018
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

4chan-boards

Get a board's name and type given its short name (eg. /b/).

2.0.0 BREAKING CHANGES

Enumerated types are now Symbols, so relying on falsy evaluation will no longer work:

const boards = require('4chan-boards')

if (boards.getType('b')) {
  console.log('This will not print!')
}

Instead, use the provided enumerated types:

if (boards.getType('b') !== boards.INVALID) {
  console.log('This message prints! Yay!')
}

Installation

yarn add 4chan-boards

# OR

npm install --save 4chan-boards

Usage

const boards = require('4chan-boards')

console.log(boards.getName('wsg'))                // Worksafe GIF
console.log(boards.getType('b') === boards.NSFW)  // true

API

Methods

Get information (ie name or type) about a board.

  • boards.getName(board)
  • boards.getType(board)

Objects

Objects mapping short names to full names. boards.all contains the mapping for all the boards, boards.sfw contains mapping for only the SFW boards, etc.

  • boards.all
  • boards.admin
  • boards.nsfw
  • boards.sfw

Enumerated types

boards.getType(board) will return an enumerated type, which has been implemented as a Symbol

  • boards.ADMIN
  • boards.NSFW
  • boards.SFW
  • boards.INVALID

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 5

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
semantic-release
Environment
{
  "local_name": "semantic-release",
  "alias": false,
  "peer_metadata": null
}
^12.4.1runtime
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^5.0.0development
travis-deploy-once
Environment
{
  "local_name": "travis-deploy-once",
  "alias": false,
  "peer_metadata": null
}
^4.3.3development
semantic-release
Environment
{
  "local_name": "semantic-release",
  "alias": false,
  "peer_metadata": null
}
^12.4.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-FeMZr7R8fCoV0nGn4PY/j4XdQaPn/dn5TqO7s66qxBNxm4h0T3xM6oVar+HcrITP7ZWAB4e5JGrdcfvtnpDgmQ==",
  "shasum": "e09a9b5a75addd55742200fc530a0640cc24e23c",
  "tarball": "https://registry.npmjs.org/4chan-boards/-/4chan-boards-1.0.1.tgz",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQD2IuJKax08MdHNMYL8j4s+KjDBvH9X1/Xx0ukbqs+IPwIgS/9FpZUUuMZe+emjqxXIQQ/MZEGLzEd7+58XxlsUigI="
    }
  ]
}

Repository

PENDING
scottyfillups/4chan-boards

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
scootykins/4chan-boards

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:06 UTC

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

Record identity

package_version:9e84c2a52364b80973387b468c81f1c9224d205da92bcbd0e5a231b9cfec86b8

Other collected versions

2.0.120 Jan2.0.010 Mar1.0.329 Jan1.0.229 Jan1.0.029 JanView all collected versions →