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.
@liteflow/compiler
Advanced tools
This library let you compile your services and/or processes.
npm install @liteflow/compiler
Warning: The service compilation doesn't produce a ready to publish result. At the end of the compilation you will still need to add the source
attribute with the hash of the tarball of the sources of your service on IPFS.
const fs = require('fs')
const compiler = require('@liteflow/compiler')
const serviceFileBuffer = fs.readFileSync('./liteflow.yml')
compiler.service(
serviceFileBuffer // Buffer of your service file `fs.readFileSync('./liteflow.yml')`
)
.then(service => console.log(service))
.catch(error => console.error("error during the compilation", error))
const fs = require('fs')
const { decode } = require('@liteflow/api/lib/util/base58')
const compiler = require('@liteflow/compiler')
const processFile = fs.readFileSync('./my-process.yml')
compiler.process(
processFileBuffer, // Buffer of your process file `fs.readFileSync('./my-process.yml')`
async object => decode(object.instanceId), // InstanceResolver, can be use to simply decode an instance id or do some check/deployment
{ "FOO": "BAR" } // Map of environment variable that will be replaced in your process
)
.then(process => console.log(process))
.catch(error => console.error("error during the compilation", error))
FAQs
Compiler
The npm package @liteflow/compiler receives a total of 0 weekly downloads. As such, @liteflow/compiler popularity was classified as not popular.
We found that @liteflow/compiler 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.