
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
Well documented, tested, self owned building blocks for TypeScript applications.
npx ts-blocks init
Check out our docs.
ts-blocks is a collection of well documented, and tested utility functions and types that can be easily dropped into your project.
They have 0 dependencies and allow you to modify the code to your own requirements. This allows you to own the code without having to write it yourself every time.
Run the init command to setup the blocks.json file.
npx ts-blocks init
npx ts-blocks add result
npx ts-blocks add result array-sum
All blocks can be found under the ./blocks directory or you can view the typedoc generated documentation here.
Each block is tested using vitest. By default we add these tests to your project when you add a block. To disable this behavior configure includeTests in your blocks.json file.
[!NOTE] If vitest isn't already installed in your project we will attempt to install it for you.
{
"$schema": "https://unpkg.com/ts-blocks@0.1.0/schema.json",
// ...
"includeTests": false // disable including tests
}
npx ts-blocks test
If you don't want to include the tests in your project source or simply want to keep your code up to date with the latest test cases you can run tests through the CLI.
ts-blocks test result
ts-blocks test result array-sum
FAQs
A CLI to blocks to your project.
The npm package ts-blocks receives a total of 3 weekly downloads. As such, ts-blocks popularity was classified as not popular.
We found that ts-blocks 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.