New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mb-ace-typescript

Package Overview
Dependencies
Maintainers
1
Versions
326
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mb-ace-typescript

no description

  • 9.0.5
  • npm
  • Socket score

Version published
Weekly downloads
73
decreased by-24.74%
Maintainers
1
Weekly downloads
 
Created
Source

Typescript mongodb for ACE

  • Typescript completer for ACE editor, 实现了Method Auto Completer, Parameter Auto Completr, Quick Info, Type Definition(CTRL+mouse hover)
  • Mongo Completer for ACE Editor, 实现了 Mongo Modifier Completor 及 Collection Field Completer.

安装及依赖 (使用)

  • $ npm install

安装及依赖 (开发)

  • $ git clone git://github.com/noteon/typescript-tools.git
  • $ npm install -g electron bower typescript
  • $ bower install
  • $ npm install --production //npm i will trigger npm prepublish, it's a bug

编译

  • $ tsc

运行 demo

  • $ npm start

如何使用

    var aceTs=require("ace-typescript-mongo");

    var tsEditor=aceTs.setupAceEditor({
        tsFilePath:"/tmp/guid.ts",
        tsTypings:[__dirname+"/lodash.d.ts"],
        editorTheme:"monokai",
        editorElem:'ts-editor',
        dbFieldsFetcher: function (collectionName){
          return [{
                      fieldName: '_id',
                      collection: "order",
                  },
                  {    
                      fieldName: 'amount',
                      collection: "order",
                  },
  
                  {
                      fieldName: 'user.fname',
                      collection: "order",
                  },
                  
                  {
                      fieldName: 'user.lname',
                      collection: "order",
                  },
                  
                  {
                      fieldName: 'fname',
                      collection: "user",
                  },
                  
                  {
                      fieldName: 'lname',
                      collection: "user",
                  }
                  
                  ].filter(function(it){
                    if (!collectionName) return true
                    return collectionName===it.collection
                  })
  
      }
    });
    

参见 ./bin/ace.html

Keywords

FAQs

Package last updated on 11 Feb 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc