Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gyp-parser

addaleax112.1kMIT1.0.4TypeScript support: included

GYP file format parser in JS

gyp, parser, json

readme

gyp-parser

GYP file format parser in JS

import { parse } from 'gyp-parser';

parse(gypFileSource);

// e.g.

parse("{ 'variable': [ 'array' ] }")
  // -> { variable: [ 'array' ] }

eval() works most of the time as well, but does not support fancier features like implicit string concatenation.

This package is exclusively a parser and does not perform any I/O.

LICENSE

MIT