Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fs (0.14 sec)

  1. docs_src/generate_clients/tutorial004.js

    import * as fs from 'fs'
    
    async function modifyOpenAPIFile(filePath) {
      try {
        const data = await fs.promises.readFile(filePath)
        const openapiContent = JSON.parse(data)
    
        const paths = openapiContent.paths
        for (const pathKey of Object.keys(paths)) {
          const pathData = paths[pathKey]
          for (const method of Object.keys(pathData)) {
            const operation = pathData[method]
            if (operation.tags && operation.tags.length > 0) {
    JavaScript
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 14 11:40:05 GMT 2024
    - 1K bytes
    - Viewed (0)
  2. .cm/plugins/filters/byCodeowner/ignore/index.js

    // >  (this is consistent with the way how pathspec works in general in Git).
    // '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'
    // -> ignore-rules will not deal with it, because it costs extra `fs.stat` call
    //      you could use option `mark: true` with `glob`
    
    // '`foo/`' should not continue with the '`..`'
    const REPLACERS = [
    
        // > Trailing spaces are ignored unless they are quoted with backslash ("\")
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top