🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

fumofumo

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fumofumo

fumofumo

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

FumoFumo.js

A js module for all fumo fans, that based on github project ZacharinC/RandomFumosSite.

examples

A simple example for browser runtime

<script src="fumo.js"></script>
<script src="download.js"></script>
<script>
// Random and download an fumo
FumoFumo().then( function( fumo ){
  download( fumo.fumo().src )
})
</script>

A simple example for nodejs runtime

// Random and download an Touhou fumo By keyword reimu
const Fumo = require( "./fumo" )
Fumo().then(function( fumo ){
  const {get} = require( "https" ),
    fs = require( "fs" ),
    myfumo = fumo.touhouFumo( "reimu" )
  get( myfumo.src, ( res ) => {
    console.log( myfumo.label )
    // Reimu Hakurei Fumo
    res.pipe( fs.createWriteStream( "fumo.png" ) )
  })
}).catch(console.error)

methods

async function FumoFumo( api : string = "https://zacharinc.github.io/RandomFumosSite/" ) : _FumoFumo object fumo{src, label, genre} class _FumoFumo

  • constructor( api : string )
  • fumo( name? : string ) : fumo
  • touhouFumo( name? : string ) : fumo
  • vocalFumo( name? : string ) : fumo
  • __path( p : string ) : string

Keywords

touhou

FAQs

Package last updated on 06 Oct 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