congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo For Javascript
create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
function
in
tar

Best JavaScript code snippets using tar.create(Showing top 3 results out of 315)

origin: lando/lando

  const configPath = path.join(this.base, '.platform', data);
  const createOpts = {gzip: true, cwd: configPath, sync: true};
  const archive = tar.create(createOpts, fs.readdirSync(configPath));
this.PLATFORM_SCHEMA = yaml.Schema.create([this.ArchiveYamlType, this.IncludeYamlType]);
origin: voorhoede/plek

const createTarball = () => {
 const configPath = fs.existsSync(path.resolve('.fly', '.fly.yml'))
  ? '.fly/.fly.yml'
  : '.fly.yml';

 const entries = [
  configPath,
  ...glob.sync('.fly/*/**.{js,json}', { cwd: process.cwd() }),
  ...yaml
   .safeLoad(fs.readFileSync(path.join(process.cwd(), '.fly.yml')))
   .files.reduce(
    (files, file) => files.push(...glob.sync(file)) && files,
    []
   ),
 ].filter(file => fs.existsSync(path.resolve(process.cwd(), file)));

 return tar.create(
  { portable: true, follow: true, file: '.fly/bundle.tar' },
  entries
 );
}
origin: nodeshift/nodeshift

return tar.create({
tar(npm)create

JSDoc

Create a tarball archive. The fileList is an array of paths to add to the
tarball. Adding a directory also adds its children recursively. An entry in
fileList that starts with an @ symbol is a tar archive whose entries will
be added. To add a file that starts with @, prepend it with `./`.
Archive data may be read from the returned stream.

Most used tar functions

  • extract
    Extract a tarball archive. The fileList is an array of paths to extract
  • x
  • c
  • Extract
    Returns a through stream. Write tar data to the stream and the files in the tarball will be extracte
  • Pack
    Returns a through stream. Use fstream to write files into the pack stream and you will receive tar a
  • Parse,
  • ParseStream.on

Popular in JavaScript

  • winston
    A logger for just about everything.
  • glob
    a little globber
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • request
    Simplified HTTP request client.
  • webpack
    Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  • readable-stream
    Streams3, a user-land copy of the stream library from Node.js
  • cheerio
    Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
  • debug
    small debugging utility
  • mocha
    simple, flexible, fun test framework
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now