2.0.2 • Published 10 years ago

chuck-steve-initialize-file v2.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Steve Initialize.ck

A wrapper for performing actions on the Initialize.ck file specified by steve.

Usage

Requiring this package returns an InitializeFile class. The class has the following methods:

.constructor()

Takes a single string containing the absolute path to the initialize.ck file

.getFilePaths()

Returns a Promise that resolves to a list of file paths added to the ChucK vm

Example

const InitializeFile = require('chuck-steve-initialize-file'):

let initializeFile = new InitializeFile('some path to initialize.ck');

initializeFile
  .getFilePaths()
  .then(fp => fp.forEach(console.log))
  .catch(console.error);

Possible Errors

An error may be returned for the following cases

  1. The file couldn't be read
  2. The file contains lines of code that are not
2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago