
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
simple-print
Advanced tools
Simple Javascript utility to print HTML element easier.
# with npm
$ npm i simple-print --save
# or with yarn
$ yarn add simple-print
import SimplePrint from 'simple-print'
<!-- PRODUCTION BUILD -->
<script src="https://unpkg.com/simple-print/lib/bundle/simple-print.min.js"></script>
<!-- OR -->
<!-- DEVELOPMENT BUILD -->
<script src="https://unpkg.com/simple-print/lib/bundle/simple-print.dev.js"></script>
var print = new SimplePrint({
styles: [
'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css',
'assets/css/your.css'
]
})
function btnClick() {
print.render(document.getElementById('element-to-print'))
}
var element = document.getElementById('element-to-print')
var opts = {
name: '_blank',
specs: [
'fullscreen=yes',
'titlebar=yes',
'scrollbars=yes'
],
styles: [
'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'
]
}
var print = new SimplePrint(opts)
function btnClick() {
// you can assign your new options like this
print.options = {
styles: [
'your-path/other-style.css'
]
}
print.render(element, function() {
console.log('Printing completed or was cancelled!')
})
}
Feel free to contribute simple-print 🙂
Copyright © 2019 by Sutan Gading Fadhillah Nasution
FAQs
Simple Javascript utility to print html element easier.
We found that simple-print 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.