1.5.1-deprecated • Published 7 years ago

simplefsm v1.5.1-deprecated

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

simple.js

a fast javascript framework / library.

NOTE: Project is now deprecated. No longer going to be get updates.

Table of contents.

Quick Start

In Terminal or Command Prompt enter this in.

mkdir Project
cd Project
npm install simplefsm

That installs simple.js to your project! You're all done.

Documentation

Building or Compiling

Building Addons

Download the latest version of simple.js here

In Terminal or Command Prompt, type this in...

cd /path/to/simplejs; unzip simple.js-master.zip
cd simple.js-master; cd lib
node-gyp configure build # install it with npm install -g node-gyp

Modules

Module information.

console.js

Print something out to the console.

var newconsole = require('simplefsm').console;

newconsole.send('Hello World!'); // doesn't add new line.
newconsole.sendl('Hello World!'); // adds new line automatically.

electron.js

Create a window with electron.

var lib = require('simplefsm').electron;
var app = require('electron').app;

app.on('ready', () => {
  // creates window with index.html
  // 500 by 500.
  lib.create(path.join(__dirname, 'index.html'), 500, 500);
});

fstream.js

Manage files.

var fs = require('simplefsm').fs;

// checks to see if file hello.txt exists
if (fs.exists('hello.txt')) {
  fs.remove('hello.txt'); // if it already exists delete it.
} else {
  fs.create('hello.txt') // if it doesn't create it.
  fs.write('hello.txt', 'Hello World!'); // adds 'Hello World!' to hello.txt
}

fun.js

Colorize words

var colors = require('colors');
var fun = require('simplefsm').fun;

var newconsole = require('simplefsm').console;

newconsole.sendl('hello'.red); // nifty way. colors needs to required.

newconsole.sendl(colors.red('hello')); // not nifty way.
newconsole.sendl(fun.colorize('red', 'hello')); // not nifty way.

os.js

Get home path. (uses C++)

var os = require('simplefsm').os;
var newconsole = require('simplefsm').console;

newconsole.sendl(os.getHome()); // gets home path ands prints it out to console.
newconsole.sendl(os.getUserName()); // gets user name ands prints it out to console.
newconsole.sendl(os.getEnvironmentVar("PATH")); // gets environment variable "PATH" and prints it out to console.

server.js

Create a server.

var server = require('simplefsm').server;
var newconsole = require('simplefsm').console;

newconsole.sendl('Starting server...');

newconsole.create(8080, '<p>Hello World!</p>'); // creates server (c++) VERY BUGGY
newconsole.createjs(8080, '<p>Hello World!</p>'); // creates server (express)

util.js

...

Built with

Contributing

Credits

Collaborators

Contributors

...

License

simple.js is licensed under the MIT license. Read LICENSE.txt for more information.

1.5.1-deprecated

7 years ago

1.5.0-deprecated

7 years ago

1.5.0-doc

7 years ago

1.5.0

7 years ago

1.4.1

7 years ago

1.4.0-new

7 years ago

1.4.0

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago