Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
decaffeinate-parser
Advanced tools
A better AST for CoffeeScript, inspired by CoffeeScriptRedux.
This project uses the official CoffeeScript parser to parse CoffeeScript source code, then maps the AST generated by the parser to one more suitable for the decaffeinate project (based on the AST generated by CoffeeScriptRedux).
This project might be useful to anyone who wants to work with a CoffeeScript AST and prefers working with a saner AST.
# via yarn
$ yarn add decaffeinate-parser
# via npm
$ npm install decaffeinate-parser
This example gets the names of the parameters in the add
function:
import { parse } from 'decaffeinate-parser';
const program = parse('add = (a, b) -> a + b');
const assignment = program.body.statements[0];
const fn = assignment.expression;
console.log(fn.parameters.map((param) => param.data)); // [ 'a', 'b' ]
FAQs
A better AST for CoffeeScript, inspired by CoffeeScriptRedux.
The npm package decaffeinate-parser receives a total of 13,029 weekly downloads. As such, decaffeinate-parser popularity was classified as popular.
We found that decaffeinate-parser 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.