0.0.10 • Published 4 years ago

oc2dart v0.0.10

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

oc2dart Build Status Total alerts Language grade: JavaScript Npm Version npm: total downloads Types Dep license

convert Objective-C header to dart and some Objective-C code to dart(regex base)

Usage

import { fromFile,fromContent,convert } from 'oc2dart';
let result = "";
fromFile(filepath).subscribe(
(token:any) => {
    result += token.toDartCode() + "\n"
},
err => console.log("Error: %s", err),
() => {
    
});

fromContent(content).subscribe(
(token:any) => {
    result += token.toDartCode() + "\n"
},
err => console.log("Error: %s", err),
() => {
    
});

const dartCode = convert(content)

// convert oc .m code
const dartCode = transform(content)

Editor support

oc2dart-vscode-extension

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago