Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
niconico API library for Node.JS, armed with Promises.
npm install niconico
const { niconico, Nicovideo } = require('niconico')
const baseDir = './videos'
async function downloadVideo(videoID) {
try {
const session = await niconico.login(
process.env.EMAIL,
process.env.PASSWORD
)
const client = new Nicovideo(session)
const filePath = await client.download(videoID, baseDir)
console.log('Downloaded:', filePath)
} catch (err) {
console.log('Error:', err)
}
}
downloadVideo('sm28222588')
The APIs return Promises. You can chain them with then
and catch
.
Returns a session cookie.
Type: string
Type: string
Returns a nicovideo agent. If a session is given, the agent will be authenticated and act as a signed user.
a session cookie given by niconico.login
.
Download a video to local dir.
Type: string
Type: string
Fetch a /watch/ page and returns its metadata.
Type: string
Returns thumbinfo. This doesn't requires session
.
Type: string
Download the video from url
to outputPath
.
Type: string
Type: string
Before create a pull-request, you need to test using npm test
.
NICONICO_EMAIL=<email> NICONICO_PASSWORD=<password> npm test
Thanks goes to these wonderful people (emoji key):
uetchy 💻 | Yuta Hiroto 💻 | m77so 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
A nicovideo plug-in for NodeJS
We found that niconico demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.