Catalog npm
PACKAGE EXPLORERView in registry

4chan-boards

npm

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

Versions collected6
Direct dependencies4From release 2.0.1
Last observed20 Oct, 20:06 UTC

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.

Versions 6

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.1Registry latest20 Jan 20194
2.0.010 Mar 20184
1.0.329 Jan 20184
1.0.229 Jan 20184
1.0.129 Jan 20184
1.0.029 Jan 20184

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:5adc5f2f31b8862100c32846ff71b6805be9e2baa65d543bf4af8c0103c42460