How to use the json-future.save function in json-future

To help you get started, we’ve selected a few json-future examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kikobeats / free-email-domains / update.js View on Github external
const $ = cheerio.load(body)
  let result = []

  $('span > p').each(function (i, el) {
    if (i !== 0) {
      const domains = $(this)
        .html()
        .replace(REGEX_SEPARATOR, ' ')
        .split(' ')

      result = concat(result, domains)
    }
  })

  jsonFuture.save('domains.json', result)
  console.log(`done! ${result.length} added`)
})()
github Kikobeats / automate-release / bin / index.js View on Github external
'scripts.postrelease',
      'scripts.prerelease',
      'scripts.release:github',
      'scripts.release:tags',
      'scripts.release',
      'scripts.update:check',
      'scripts.update',
      ['lint-staged', 'package.json']
    ],
    key => {
      const value = get(rootPkg, key)
      set(pkg, key, value)
    }
  )

  jsonFuture.save(pkgPath, pkg)
  await fs.copy(path.resolve(__dirname, '../.travis.yml'), '.travis.yml')

  console.log()
  console.log(
    gray(
      ` ${white(
        link(
          'automate-release',
          'https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/'
        )
      )} installed 🎉.`
    )
  )
  console.log()
  console.log(
    gray(
github caolan / async / gulpfile.js View on Github external
return getFolders(MODULES_PATH).map(function(module) {
        var dist = path.resolve(MODULES_PATH, module);
        jsonFuture.save(path.resolve(dist, 'package.json'), generatePackage(module));
        generateReadme(module, path.resolve(dist, 'README.md'));
        copyMetaFiles(dist);
    });
});

json-future

Unbelievable and Modern JSON interface.

MIT
Latest version published 5 months ago

Package Health Score

67 / 100
Full package analysis