Skip to content

Commit

Permalink
feat(self): info about package on '_self' property
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Jul 5, 2019
1 parent c78db76 commit b7d2dcb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,30 @@
* @license MIT
*/

console.log(2)
import _self from './lib/self'

/**
* JS client for E-Com Plus REST APIs.
* @module @ecomplus/client
* @exports {@link ecomClient}
*
* @example
* // ES import
* import ecomClient from '@ecomplus/client'
*
* @example
* // With CommonJS
* const ecomClient = require('@ecomplus/client')
*
* @example
* <!-- Global `ecomClient` from CDN on browser -->
* <script src="https://cdn.jsdelivr.net/npm/@ecomplus/client"></script>
*/

export {
_self
}

/**
* @namespace ecomClient
*/
5 changes: 5 additions & 0 deletions src/lib/self.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { name, version } from './../../package.json'

// exports info about the package
export default name + '@' + version
export { version }

0 comments on commit b7d2dcb

Please sign in to comment.