Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scp-api.js

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scp-api.js

Scrapper for SCP-wiki info.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
0
Weekly downloads
 
Created
Source

scp-api.js

CodeFactor NPM-Version NPM-Downloads Github Stars Issues

This a wrapper/scrapper of the SCP Fandom site.

There is no API key required.

To install use:

npm i scp-api.js

There is two ways to fetch data.

You can use the method fetchSCP without creating an API instance first, or you can create and API instance and use getSCP to take adventage of local cache data.

Here you have the two examples:

import { API, fetchSCP } from './src';

console.log('---- Direct Method: ----')
const scp3007 = await fetchSCP('3007')
console.log({ scp3007 })

console.log('---- Cache Method: ----')
const api = new API();
const first = await api.getSCP('3007');
const second = await api.getSCP('982');
console.log('results: ', {
    first,
    second,
})
console.log('cache: ', api.raw)

Disclaimer

This project is fully made for educational purposes

Keywords

FAQs

Package last updated on 12 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc