Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
an experimental lovely frame
yarn add menhera
import Mhr from "menehra";
const test = ({ _val }) => console.log(_val);
const testFn = ({ _val }) => console.log(_val());
const testEach = ({ _val }) => {
typeof _val === "function" && testFn({ _val });
typeof _val !== "function" && test({ _val });
};
const testRoot = ({ _val }) => {
for (let [key, val] of Object.entries(_val)) {
testEach({ _val: val });
}
};
Mhr.$use({
_hooks: {
"foo.bar.foo1.bar1": {
$: testEach,
_: testRoot,
test,
testFn
}
},
"foo.bar.foo1.bar1": {
test: "foo bar",
testFn: () => "foo bar"
}
});
import { $match, $str } from "menhera";
let obj = {
loading: true,
error: true,
foo: {
foo: 123,
bar: 123
}
};
let loading = $str({ equal: { loading: true }, get: { loading: "" } });
let error = $str({ valid: { error: "" }, get: { error: "" } });
let foobar = $str({
equal: { foo: { bar: 123 } },
get: { bar: "foo.bar" }
});
$match(
obj,
{
[loading]: ({ loading }) => console.log("loading", loading),
[error]: ({ error }) => console.log("error", error),
[foobar]: ({ bar }) => console.log(bar)
},
{
type: "advanced"
}
);
FAQs
an experimental lovely framework
The npm package menhera receives a total of 5 weekly downloads. As such, menhera popularity was classified as not popular.
We found that menhera demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.