New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lutre

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lutre

This a simple pack of sum of two number made in typescript.

latest
npmnpm
Version
1.0.12
Version published
Weekly downloads
21
61.54%
Maintainers
1
Weekly downloads
 
Created
Source

Lutre

This a simple pack of sum of two number made in typescript.

Install Lutre

$ npm i lutre 

or clone this repo

$ git clone https://github.com/MarcelloVSilva/lutre.git

Mocha Test

$ npm test

Usage

import { sum } from 'lutre'

obs: If not work with import and show this error on console

(function (exports, require, module, __filename, __dirname) { import {soma} from 'lutre'
                                                              ^^^^^^
SyntaxError: Unexpected token import
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:513:28)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3

Maybe you should have install some compiler like Babel. It will transform import to require. Maybe works for you. Works for me. :)

If you wanna fork me and edit my code, edit file .ts and compile on terminal with:

Compile .ts to .js

$ tsc sum.ts

FAQs

Package last updated on 29 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts