Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
etro-node
Advanced tools
Readme
Sometimes it's useful to use Etro in Node. This package is a wrapper of Etro that serves that purpose.
etroNode(() => {
// You can access inputs as html elements and pass them to Etro as usual.
const image = document.getElementById('input1') // <img> element
...
movie.exportRaw()
.then(window.done)
// Tell Etro Node what inputs to load with { id: path }
}, { input1: 'path/to/image.png' }, 'output.mp4')
etroNode(etroFunction, inputSources, resultCallbackOrPath[, page])
etroFunction
(string) - Function to run in the puppeteer page. etro and done are exposed as globals (accessed as properties of window)
window.done(exportedBytes)
- Process the exported movie (resolved value of Movie#exportRaw), by either writing to resultCallbackOrPath if it's a string or executing it if it's a functioninputSources
(Object<string, <string|Object>>) - the input assets, mapped from id to path or raw data. If the input is provided as raw data, it should be an object with the following properties:
resultCallbackOrPath
(function|string) - Determines what to do when window.done is alled in etroFunction. If it's a string, it is treated as a path and the movie is written to it. If it's a function, it is called with one argument exportedBytes.page
(Page) - the puppeteer Page to use. Defaults to a page created by a new browser.Runs etroFunction
in a puppeteer page. Each input source is converted to an html element (<img>
, <audio>
or <video>
). The output is either written to the path or the callback is executed, depending on the type of resultCallbackOrPath
.
Added:
etroNode
- the etro wrapperMovie#recordRaw
- a convenience method for recording in the etro wrapperPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
A wrapper to run Etro in Node
The npm package etro-node receives a total of 2 weekly downloads. As such, etro-node popularity was classified as not popular.
We found that etro-node 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.