Neglected Parking Meter

    x-less

    1.0.1 • Public • Published

    x-less

    x-less parse less string sync.

    Usage

    var js = require('js-stand');
    var typeOf=js.typeOf;
    var queryParse=js.queryParse;
     
    // typeOf
    console.log(typeOf([]));   // array
    console.log(typeOf(null)); // null
    console.log(typeOf({}));   // object
    console.log(typeOf(1));    // number
    console.log(typeOf('hi')); // string
    console.log(typeOf(true)); // boolean
    console.log(typeOf(function(){})); // function
     
    // typeOf plus mode
    console.log(typeOf(NaN,true));             // nan
    console.log(typeOf(new Date(),true));      // date
    console.log(typeOf(new RegExp(),true));    // regexp
    console.log(typeOf(new Error(),true));     // error
    console.log(typeOf(new Map(),true));       // map
    console.log(typeOf(new Set(),true));       // set
    console.log(typeOf(document.body,true));   // htmlbodyelement
     
     
     

    Installation

    With npm do

    $ npm install js-stand

    Then bundle for the browser with browserify.

    With component do

    License

    (MIT)

    Copyright (c) 2013 Evan Tsword Yao <yaoyifeng@hisign.com.cn>

    Install

    npm i x-less

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • tswordyao