Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inprint

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inprint - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "inprint",
"version": "1.0.5",
"version": "1.0.6",
"private": false,

@@ -5,0 +5,0 @@ "description": "A very simple precompiler written in typescript. With it you can make a dynamically generated blocks in your code.",

@@ -19,3 +19,3 @@ # inprint

Anywhere in your code add a block you want to generate like this
1. Anywhere in your code add a block you want to generate like this

@@ -30,3 +30,3 @@ ```javascript

Now add **inprint.cjs** (or **.js**) to your project with the following contents:
2. Now add **inprint.cjs** (or **.js**) to your project with the following contents:

@@ -42,4 +42,16 @@ ```javascript

The returned content will be inprinted between **@INPRINT** tags.
3. Run **inprint**
4. The returned content will be inprinted between **@INPRINT** tags:
```javascript
console.log("any code can be here");
// @INPRINT_START {my:"own params", json5:'is supported here!'}
// {my:"own params", json5:'is supported here!'}
// @INPRINT_END
console.log("any code can be here");
```
# Details
inprint function will receive the following additional paramaters:

@@ -46,0 +58,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc