Socket
Socket
Sign inDemoInstall

chuck-steve-initialize-file

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chuck-steve-initialize-file

A wrapper for performing actions on the Initialize.ck file specified by [steve](https://www.github.com/brycekbargar/steve).


Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Install size
631 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 13 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc