
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Anys SDK core program.
npm i anys
<script src="https://unpkg.com/anys/dist/index.js"></script>
import { Anys } from 'anys';
const anys = new Anys(options);
<script>
const { Anys } = window.anys;
const anys = new Anys(options);
</script>
true
write
lifecycleAnd, different plugins require its own configs, you will read plugins' configs in their own document.
Plugins can be an array or an object, when you give an object, you can read plugin instances on anys.plugins
property, for example:
const anys = new Anys({
plugins: {
offlineStore: AnysStoreOfflinePlugin,
},
});
// here now we can invoke anys.plugins to get plugin instance
const { offlineStore } = anys.plugins;
// invoke plugin api
const logs = await offlineStore.select([
{ key: 'time', value: Date.now() - 3600000, compare: '>' },
]);
You can read the following properties on anys instance:
start()
Start anys process.
stop()
Stop anys process.
After stopping, you can invoke start
to restart the process.
define(key, get)
Provide a new property for all logs by define it with a getter function.
anys.define('user', () => getCurrentUserId());
refreshTraceId()
Refresh traceId.
refreshRequestId()
Refresh requestId.
write(log)
Ask anys to write a log into its cache.
If a log is filtered by given filters
, it will not be written.
report(message)
Ask anys to report logs to your server side.
on(event, callback)
Bind listener for event.
Events: start, write, report, read, send, clear, stop, refreshTraceId, refreshRequestId.
FAQs
The most agile javascript monitor project.
The npm package anys receives a total of 0 weekly downloads. As such, anys popularity was classified as not popular.
We found that anys 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
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.