node-dev-fx
```javascript npm i node-dev-fx -S ```
Last updated 7 months ago by gainorloss .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-dev-fx 
SYNC missed versions from official npm registry.

install package

npm i node-dev-fx -S

import package

const fx=require('node-dev-fx');

httpServer

var httpServer=fx.httpServer;
httpServer.addHandler('/api/hello',function(req){
    return "hello";
});
httpServer.addHandler('/api/users',function(req){
    return {id:1,name:'gainorloss'};
});
httpServer.start('localhost',3000);

html downloader & parser

var downloader=fx.htmlDownloader;
var parser=fx.htmlParser;

downloader.getHtmlContent("http://visionmedia.github.io/superagent/",{},content=>{
    parser.getItems(content,"h3",function($,i,e){
        console.log('downloader',$(e).text());
    });
});

scheduler & logger.

var scheduler=fx.scheduler;
var logger=fx.logger;

let i=0;
scheduler.addJob("default",'*/1 * * * * ?',function(){
   i++;
   logger.debug('scheduler',i);
   logger.info('scheduler',i);
   logger.warning('scheduler',i);
   logger.err('scheduler',i);
});
scheduler.run();

Current Tags

  • 0.1.35                                ...           latest (7 months ago)

67 Versions

  • 0.1.35                                ...           7 months ago
  • 0.1.34                                ...           7 months ago
  • 0.1.33                                ...           7 months ago
  • 0.1.32                                ...           7 months ago
  • 0.1.31                                ...           7 months ago
  • 0.1.30                                ...           7 months ago
  • 0.1.29                                ...           7 months ago
  • 0.1.28                                ...           7 months ago
  • 0.1.27                                ...           7 months ago
  • 0.1.26                                ...           7 months ago
  • 0.1.25                                ...           7 months ago
  • 0.1.24                                ...           7 months ago
  • 0.1.23                                ...           7 months ago
  • 0.1.22                                ...           7 months ago
  • 0.1.21                                ...           7 months ago
  • 0.1.20                                ...           7 months ago
  • 0.1.19                                ...           7 months ago
  • 0.1.18                                ...           7 months ago
  • 0.1.17                                ...           7 months ago
  • 0.1.16                                ...           7 months ago
  • 0.1.15                                ...           7 months ago
  • 0.1.1-4.1                                ...           7 months ago
  • 0.1.14                                ...           7 months ago
  • 0.1.1-3.4                                ...           7 months ago
  • 0.1.1-3.3                                ...           7 months ago
  • 0.1.1-3.2                                ...           7 months ago
  • 0.1.1-3.1                                ...           7 months ago
  • 0.1.13                                ...           7 months ago
  • 0.1.12                                ...           7 months ago
  • 0.1.11                                ...           7 months ago
  • 0.1.10                                ...           7 months ago
  • 0.1.9                                ...           7 months ago
  • 0.1.8                                ...           7 months ago
  • 0.1.7                                ...           7 months ago
  • 0.1.6                                ...           7 months ago
  • 0.1.5                                ...           7 months ago
  • 0.1.4                                ...           7 months ago
  • 0.1.3                                ...           7 months ago
  • 0.1.2                                ...           7 months ago
  • 0.1.1                                ...           7 months ago
  • 0.1.0                                ...           7 months ago
  • 0.0.26                                ...           7 months ago
  • 0.0.25                                ...           7 months ago
  • 0.0.24                                ...           7 months ago
  • 0.0.23                                ...           7 months ago
  • 0.0.22                                ...           7 months ago
  • 0.0.21                                ...           7 months ago
  • 0.0.20                                ...           7 months ago
  • 0.0.19                                ...           7 months ago
  • 0.0.18                                ...           7 months ago
  • 0.0.17                                ...           7 months ago
  • 0.0.16                                ...           7 months ago
  • 0.0.15                                ...           7 months ago
  • 0.0.14                                ...           7 months ago
  • 0.0.13                                ...           7 months ago
  • 0.0.12                                ...           7 months ago
  • 0.0.11                                ...           7 months ago
  • 0.0.10                                ...           7 months ago
  • 0.0.9                                ...           7 months ago
  • 0.0.8                                ...           7 months ago
  • 0.0.7                                ...           7 months ago
  • 0.0.6                                ...           7 months ago
  • 0.0.5                                ...           7 months ago
  • 0.0.4                                ...           7 months ago
  • 0.0.3                                ...           7 months ago
  • 0.0.2                                ...           7 months ago
  • 0.0.1                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (18)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |