Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@daliusd/langd
Advanced tools
Wanna collect language strings fast? Welcome to langd!
This is built on top of core_d.js.
$ npm install -g @daliusd/langd
NOTE: npm
comes builtin to node
.
Install fd
as this is
requirement to find messages_en.json
files.
The langd script always takes the file in the standard input and the optional positional parameter with the root folder:
$ cat file.ts | langd /path/to/root
When you run langd
then it searches for messages_en.json
files
in specified root and loads content of messages_en.json
to
memory. Next time you run langd
it will get results from memory.
If you add new messages_en.json
files under your root langd
will search them again in 5 minutes. If you need to do it faster
then restart langd
using langd restart
.
Files are cached for 60 minutes but they will be reloaded on
modification. If you want to see what files are currently loaded
in memory run langd status
:
❯ langd status
Running.
Paths cached by root
--------------------
Root: /home/daliusd/projects/em/packages/fun-react
- No cached files
Root: /home/daliusd/projects/em/packages/fun-picker
- /home/daliusd/projects/em/packages/fun-picker/src/assets/locales/messages_en.json
Here is how it can be integrated with null-ls.nvim.
local langd = {
method = null_ls.methods.DIAGNOSTICS,
filetypes = { "javascript", "javascriptreact", "typescript", "typescriptreact" },
generator = null_ls.generator({
command = "langd",
args = { vim.fn.getcwd() },
to_stdin = true,
format = "line",
on_output = helpers.diagnostics.from_patterns({
{
pattern = [[(%d+):(%d+):(%d+) (.*)]],
groups = { "row", "col", "end_col", "message" },
overrides = {
diagnostic = {
severity = helpers.diagnostics.severities.information,
},
},
},
}),
}),
}
null_ls.register(langd)
This should show strings for corresponding keys in Neovim:
FAQs
language string collector, as a daemon
The npm package @daliusd/langd receives a total of 1 weekly downloads. As such, @daliusd/langd popularity was classified as not popular.
We found that @daliusd/langd 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.