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.
atom-package-reloader
Advanced tools
reloades your atom packages on file change
npm install --save-dev atom-package-reloader
returns a Function({pkg,folders})
if atom.inDevMode()
options | Type | Usage |
---|---|---|
pkg | string | name of your package |
folders | array | (optional) names of folders to watch defaults to '["lib"]' |
returns a object with three functions
function | Usage |
---|---|
reload() | manually reloads your package |
watchOnce() | renews folder watchers |
dispose() | manually dispose folder watchers |
watchOnce
will be called automatically.
One file change reload()
and dispose()
will be called.
if not atom.inDevMode()
null
will be returned
Will only work in dev mode!
# inside of your activation function
# delay is necessary to eliminate double execution
# try-catch is only necessary if you use it as a dev-dependecy
setTimeout (->
reloaderSettings = pkg:"name-of-your-package",folders:["lib","styles"]
try
reloader ?= require("atom-package-reloader")(reloaderSettings)
catch
),500
# inside of your deactivation function
reloader?.dispose()
reloader = null
Copyright (c) 2015 Paul Pflugradt Licensed under the MIT license.
FAQs
a reloader for atom packages
We found that atom-package-reloader 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.