
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
sails-js-parser
Advanced tools
The sails-js-parser
is designed to parse Sails IDL files, producing an output that can be used to generate client libraries or facilitate interaction with Gear blockchain programs.
To install the sails-js-parser
library:
npm install sails-js-parser
import { SailsIdlParser } from 'sails-js-parser';
const parser = await SailsIdlParser.new();
Often used with sails-js
:
import { Sails } from 'sails-js';
import { SailsIdlParser } from 'sails-js-parser';
const parser = await SailsIdlParser.new();
const sails = new Sails(parser);
const idl = `
constructor {
New : ();
};
service SailsApp {
DoSomething : () -> str;
};
`
const program = parser.parse(idl);
The parse
method returns a Program instance representing the parsed IDL.
FAQs
Sails-IDL parser for TypeScript
The npm package sails-js-parser receives a total of 276 weekly downloads. As such, sails-js-parser popularity was classified as not popular.
We found that sails-js-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.