Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

suiteplus/netsuite-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

note: Abandoned/incomplete. The initial idea was to split netsuite helpers into many modules.

netsuite-file

File cabinet helpers for netsuite (suitescript 1.0).

Usage

(currently) Use browserify and require('netsuite-file')

Functions

pathInfo(pathIn : string , baseIn = '/', createFolders = false) : IPathInfo

Brings in path info relative to a base path. Creates folders if asked to and necessary.

Base path, if used, must start with '/'

Returns:

export interface IPathInfo {
    folderid: number;
    filename: string;
    fileext: string;
    nsfileext: string;
    pathabsolute: string;
    pathrelative: string;
    baserelative: string;
}

saveFile(path : string, contents : string) : number

Shorthand for saving a file. The path must begin with '/'.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published