Skip to content

Latest commit

 

History

History
79 lines (58 loc) · 1.55 KB

README.md

File metadata and controls

79 lines (58 loc) · 1.55 KB

utils

ataola's utils: maybe publish a feature one week, to record something i think or meet.

Software License Packagist Travis CI Codecov

Introduction

site|docs

Modules

Installation

npm i @ataola/utils --save

Usage

es module

import * as utils from '@ataola/utils';

utils.getVersion();
import { getVersion } from '@ataola/utils';
console.log(getVersion());

commonjs

command:

npm init -y
npm i esm @ataola/utils --save

for example:

const utils = require('@ataola/utils');
console.log(utils);
const { getVersion } = require('@ataola/utils');
console.log(getVersion());

package.json

...
 "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "esm": "node -r esm index.js"
  },
...