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.
slack-log2md
Advanced tools
Slack log file (JSON) to Markdown file.
$ npm install slack-log2md
Markdown file is generated from Slack log file JSON by running CLI or Node.js API.
The generated Markdown file has the following format.
# 2019-10-31
|Time|Icon|Name|Message|
|---|---|---|---|
|13:43|![](https://example.com/test/72.png)|test|`@test` has joined the channel|
|07:02|![](https://example.com/test/72.png)|test|`@test` `#general` Sample message<br>Sample<br><br>Sample|
|07:02|![](https://example.com/bot/72.png)|Sample Bot|🇬🇧: Sample message.|
|15:22|![](https://example.com/test/72.png)|test|Quote: <br><blockquote>Sample<br>Text</blockquote>Please read the above.|
|18:09|![](https://example.com/test/72.png)|test|Code: <br><pre>const value = 'code';<br>console.log(value);</pre><br>Please read the above.|
|18:09|![](https://example.com/test/72.png)|test|Files.<br>https://example.com/files/sample.jpg<br>https://example.com/files/sample.md|
|18:09|![](https://example.com/test/72.png)|test|Sample.<br>Pre-text<blockquote>[sample/example] Text</blockquote><br><blockquote><!here> Text</blockquote>|
<table>
tag.@user
and #channel
in the body text enclose the target name in <code>
tags.:smile:
, :flag-gb:
, ...etc) is converted to the corresponding Unicode character.\n
to <br>
tags.> text
, > text
on log) to <blockquote>
tags.<pre>
tags.Usage: slack-log2md [options]
Slack log file (JSON) to Markdown file.
Options:
-i, --input <Path> Directory path of the JSON file exported from Slack.
-o, --output <Path> Directory path to output Markdown file converted from JSON.
-r, --report Display the process reports, default is disable.
--grouping-same-day-by-utc Output Markdown grouped on the same day as UTC date.
--github-wiki Support output for GitHub Wiki. e.g. `general/2019-11-16.md` -> `slack-general-2019-11-16.md`
--add-unique-message-id Add unique identifier for a message. Set the time in the Time field to `<span id ="XXXX">21:34</span>`.
--ignore-channel-login Ignore channel login messages.
-v, --version output the version number
-h, --help output usage information
Examples:
$ slack-log2md -i ./logs -o ./dist -r
See also:
https://github.com/akabekobeko/npm-slack-log2md
Converts Slack log JSON in the specified workspace directory to Markdown.
Parameters:
Parameter | Type | Default | Description |
---|---|---|---|
src | String | Directory path of log file exported from Slack. | |
dest | String | Directory path to output Markdown file converted from log. If a nonexistent directory is specified, the same location as input is selected. | |
options | Options | {} |
Options:
Parameter | Type | Default | Description |
---|---|---|---|
report | Boolean | false | true to display the processing status of the tool to stdout . |
groupingSameDayByUTC | Boolean | false | true if messages in the channel are grouped by the same day in UTC. If false , the group is the output log file unit. |
githubWiki | Boolean | false | true if support output for GitHub Wiki. Single directory, all file names are unique, avoid conflicts with existing page names. e.g. general/2019-11-16.md -> slack-general-2019-11-16.md . |
addUniqueMessageId | Boolean | false | Add unique identifier for a message. Set the time in the Time field to <span id ="XXXX">21:34</span> . |
ignore.channelLogin | Boolean | false | Specifies the type of message to ignore. |
Sample code:
const slackLog2Md = require('slack-log2md');
const options = {
report: true,
groupingSameDayByUTC: true,
githubWiki: true,
addUniqueMessageId: false,
ignore: {
channelLogin: true
}
};
slackLog2Md('./logs', './dest', options).catch((err) => {
console.error(err)
});
FAQs
Slack log file (JSON) to Markdown.
We found that slack-log2md 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.