[Home](./index.md) > [@keymanapp/kmc-kmn](./kmc-kmn.md) > [KmnCompiler](./kmc-kmn.kmncompiler.md) > [write](./kmc-kmn.kmncompiler.write.md) ## KmnCompiler.write() method Write artifacts from a successful compile to disk, via callbacks methods. The artifacts written may include: - .kmx file - binary keyboard used by Keyman on desktop platforms - .kvk file - binary on screen keyboard used by Keyman on desktop platforms - .js file - Javascript keyboard for web and touch platforms **Signature:** ```typescript write(artifacts: KmnCompilerArtifacts): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | artifacts | [KmnCompilerArtifacts](./kmc-kmn.kmncompilerartifacts.md) | object containing artifact binary data to write out | **Returns:** Promise<boolean> true on success