
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@deepakvishwakarma/ts-util
Advanced tools
Utility library,code snippets like lodash for typescript, typescriptreact(tsx) and deno [inspired by 30-seconds-of-code].
This repo is collection of multiple utility function Like lodash, that can be used and anywhere with simply importing.
All the documents can be found on 30-seconds-of-typescript
How to access page:
Note: This repo is highly inspired by 30-seconds-of-code. I am converting all JS to Typescript so that it can be used for Typescript, Modern HTML|JS and Deno. Github
I am refactoring code and fixing bug along with conversion.
npm i @deepakvishwakarma/ts-util
import { mask } from "@deepakvishwakarma/ts-util";
console.log(mask(1234567890)); // '******7890'
console.log(mask(1234567890, 3)); // '*******890'
console.log(mask(1234567890, -4, "$")); // '$$$$567890'
const { mask } = require("@deepakvishwakarma/ts-util");
console.log(mask(1234567890)); // '******7890'
console.log(mask(1234567890, 3)); // '*******890'
console.log(mask(1234567890, -4, "$")); // '$$$$567890'
You can find working plugin on marketplace.visualstudio.com. You can either search for 30-seconds-of-typescript Or Install from here imdeepak.30-seconds-of-typescript
30_delay

This repo has utility file, that can be imported to Deno and modern EcmaScript.
import { all } from "https://denopkg.com/deepakshrma/30-seconds-of-typescript/util.ts";
all([{ name: "D" }, { name: "D2" }], hasName); //true
<script type="module">
// Use any Github CDN
import * as util from "https://cdn.jsdelivr.net/gh/deepakshrma/30-seconds-of-typescript/util.js";
const el = util.createElement(
`<div class="container"><p>Hello! This is created using createElement!! </p></div>`
);
document.body.appendChild(el);
</script>
export here util.ts
How to bundle: It will be auto using husky githook
deno test util.test.ts
1. Generate Snippets:
npm run code-gen
2. Generate Extension:
npm run extension
3. Install Extension Locally:
code --install-extension *.vsix
Note: This website is build using docusaurus.
FAQs
Utility library,code snippets like lodash for typescript, typescriptreact(tsx) and deno [inspired by 30-seconds-of-code].
We found that @deepakvishwakarma/ts-util 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.