How to use the default function from yaml
Find comprehensive JavaScript yaml.default code examples handpicked from public code repositorys.
16 17 18 19 20 21 22 23 24 25var lodash_toarray_1 = __importDefault(require("lodash.toarray")); var path_1 = __importDefault(require("path")); var url_1 = require("url"); var yaml_1 = __importDefault(require("yaml")); var partial_1 = require("./helper/partial"); var config = yaml_1.default.parse(fs_1.default.readFileSync(path_1.default.join(process.cwd(), '_config.yml')).toString()); var THEME_LOCATION = path_1.default.join(process.cwd(), 'themes', config.theme || 'landscape'); var _THEME_SCRIPTS = path_1.default.join(THEME_LOCATION, 'scripts'); // loadScripts(THEME_SCRIPTS); /**
+ 4 other calls in file
47 48 49 50 51 52 53 54 55 56owner: context.repo.owner, repo: context.repo.repo, path: config_path, ref: context.ref, }); return yaml_1.default.parse(response_body.content); }); } function get_reviews() { return __awaiter(this, void 0, void 0, function* () {
84 85 86 87 88 89 90 91 92 93repo: context.repo.repo, path: config_path, ref: context.ref, }); var ymlContent = Buffer.from(response_body.content, 'base64').toString(); return yaml_1.default.parse(ymlContent); }); } function fetch_changed_files() { return __awaiter(this, void 0, void 0, function* () {
+ 19 other calls in file
86 87 88 89 90 91 92 93 94 95} const configExplorer = (0, _lilconfig.lilconfigSync)(cssnano, { searchPlaces: ['package.json', '.cssnanorc', '.cssnanorc.json', '.cssnanorc.yaml', '.cssnanorc.yml', '.cssnanorc.js', 'cssnano.config.js'], loaders: { '.yaml': (filepath, content) => _yaml.default.parse(content), '.yml': (filepath, content) => _yaml.default.parse(content) } }); const config = configPath ? configExplorer.load(configPath) : configExplorer.search(searchPath);
185 186 187 188 189 190 191 192 193 194} static dump(manifest) { types_1.strOptions.fold.lineWidth = 90; // @ts-expect-error TODO: plain is the value behind the TS constant types_1.strOptions.defaultType = 'PLAIN'; return yaml_1.default.stringify(manifest.toJS()); } static async load(filename, { protocol, skipValidation } = { skipValidation: false, }) {
GitHub: ethereumdegen/graph-cli
179 180 181 182 183 184 185 186 187 188extends: 'ethereum.Event', }); klass.addMethod(tsCodegen.method(`get params`, [], tsCodegen.namedType(paramsClassName), `return new ${paramsClassName}(this)`)); // Fixture generation if (doFixtureCodegen) { const args = yaml_1.default.parse(fs_1.default.readFileSync('./fixtures.yaml', 'utf8')); const blockNumber = args['blockNumber']; const contractAddr = args['contractAddr']; const topic0 = args['topic0']; const apiKey = args['apiKey'];
yaml.parse is the most popular function in yaml (1035 examples)