Skip to content
/ fs Public

Drop-in replacement for the fs NodeJS package

License

Notifications You must be signed in to change notification settings

skpm/fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fs for Sketch

All the sync nodejs fs API is available.

⚠️ The version 0.2.* requires Sketch 52 or above. Use the version 0.1.* if you need to support earlier version of Sketch.

fs.writeFileSync, fs.appendFileSync and fs.readFileSync accept an NSData as encoding

Installation

npm install @skpm/fs

Usage

const fs = require('@skpm/fs')

fs.readFileSync('/path/to/file')

About

Drop-in replacement for the fs NodeJS package

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published