
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
@dikolab/basic
Advanced tools
So tired of reinventing the wheel every time there's new Javascript project.
And now, I'm feeling lazy and just want to create a Javascript Object using the code below.
import { query } from "@dikolab/basic";
import * as package from "./package.json";
export const packageInfo = query(
`
/* define @package */
package from ?;
/* define @package */
dependencies from keys(@package.dependencies);
// I want to get my package information
{
name: @package.name,
version: @package.version,
deps: @dependencies
}
`,
[
package
]
);
Install using NPM
npm install --save @dikolab/basic
May import functions using ES6 module import.
import {
object,
contains
} from "@dikolab/basic";
export function hasProperty(param, name) {
return object(param) && contains(param, name);
}
Or, CommonJS import.
const basic = require("@dikolab/basic");
function hasProperty(param, name) {
return basic.object(param) && basic.contains(param, name);
}
exports.hasProperty = hasProperty;
None.
None.
None.
Stay tune for more documentation and functionality.
FAQs
Basic Javascript helpers
We found that @dikolab/basic 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
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.