Network Printer Manager

    @thanos.js/core
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

    @thanos.js/core

    The core Thanos.js module. To be used with the @thanos.js/gauntlet package

    Installation

    Using npm:

    $ npm i @thanos.js/core

    Using Yarn:

    $ yarn add @thanos.js/core

    Example usage

    const Thanos = require('@thanos.js/core').default; // CommonJS
    import Thanos from '@thanos.js/core'; // ES Module
    
    const Gauntlet = require('@thanos.js/gauntlet').default;
    const RealityGem = require('@infinitygems/reality').default;
    const SoulGem = require('@infinitygems/soul').default;
    const MindGem = require('@infinitygems/mind').default;
    const TimeGem = require('@infinitygems/time').default;
    const SpaceGem = require('@infinitygems/space').default;
    
    const thanos = new Thanos();
    const gauntlet = new Gauntlet();
    
    thanos.equipGauntlet(gauntlet);
    
    (async () => {
    	console.log('Equiping reality gem...');
    	await gauntlet.insertGem(new RealityGem());
    
    	console.log('Equiping soul gem...');
    	await gauntlet.insertGem(new SoulGem());
    
    	console.log('Equiping mind gem...');
    	await gauntlet.insertGem(new MindGem());
    
    	console.log('Equiping time gem...');
    	await gauntlet.insertGem(new TimeGem());
    
    	console.log('Equiping space gem...');
    	await gauntlet.insertGem(new SpaceGem());
    
    	const deleted = await thanos.snapFingers();
    
    	console.log(['Deleted files:', ...deleted].join('\n'));
    })();

    Install

    npm i @thanos.js/core

    DownloadsWeekly Downloads

    7

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    20.6 kB

    Total Files

    24

    Last publish

    Collaborators

    • elchologamer