Skip to content

add amd support #83

@oxffaa

Description

@oxffaa

need amd(requirejs) support
like this

(function(global, factory) {
'use strict';

if (typeof define === 'function' && define.amd) {
// AMD
define('path-js', [], function() {
global.Path= factory();
return global.Path;
});
} else if (typeof exports !== 'undefined') {
// Node/CommonJS
exports.Path= factory();
} else {
// Browser global
global.Path= factory();
}
}(this, function() {
// code here
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions