Popularity
4.5
Declining
Activity
0.0
Stable
11
3
4
Programming language: Crystal
License: ISC License
Tags:
Misc
Latest version: v0.1.5
atomic_write.cr alternatives and similar shards
Based on the "Misc" category.
Alternatively, view atomic_write.cr alternatives based on common mentions on social networks and blogs.
-
sentry
Build/Runs your crystal application, watches files, and rebuilds/restarts app on file changes -
guardian
Guardian watches over your files and run assigned tasks. -
immutable
Thread-safe, persistent, immutable collections for the Crystal language -
crystagiri
An Html parser library for Crystal (like Nokogiri for Ruby) -
crz
Functional programming library for https://github.com/crystal-lang/crystal -
crystal-futures
Future type implementation for Crystal language -
cron_scheduler
Simple job scheduler with crontab patterns for Crystal Language. -
inflector.cr
Inflector shard for Crystal. A port of ActiveSupport::Inflector -
crystal-web-framework-stars
⭐️ Web frameworks for Crystal, most starred on Github -
kreal
Kreal is a model sharing & RPC library built on and works with Kemal seamlessly. -
aasm.cr
:arrows_clockwise: Easy to use finite state machine for Crystal classes -
retriable.cr
Retriable.cr is a simple DSL to retry failed code blocks -
ulid
Universally Unique Lexicographically Sortable Identifier (ULID) in Crystal -
CrSerializer
Extensible annotation based serialization/deserialization library -
burocracia.cr
No dependency Crystal shard to validate, generate and format Brazilian burocracias such as CPF, CNPJ and CEP -
circuit_breaker
Implementation of the circuit breaker pattern in crystal -
wikicr
Wiki in crystal, using Markdown and Git, inspired by dokuwiki. Last features to build are pretty hard, if you have some time to help... :) -
m3u8
Generate and parse m3u8 playlists for HTTP Live Streaming (HLS) in Crystal. -
message_verifier.cr
Rails compatible MessageVerifier for Crystal-lang apps -
defined
This shard provides facilities for checking whether a constant exists at compile time, and for a variety of different conditional compilation options. Code can be conditionally compiled based on the existence of a constant, version number constraints, or whether an environment variable is set truthy or not.
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Promo
scoutapm.com
Do you think we are missing an alternative of atomic_write.cr or a related project?
README
atomic_write.cr
Extends File
to provide atomic_write()
.
An atomic write creates a new file at a temporary path. It then writes the new file contents to that file. Lastly it renames it to the original path. This dramatically reduces the opportunity for file corruption.
Installation
Add this to your application's shard.yml
:
dependencies:
atomic_write:
github: chris-huxtable/atomic_write.cr
Usage
require "atomic_write"
Atomic write:
File.atomic_write("some/path") { |fd| fd << "hello world" }
Atomic append:
File.atomic_write("some/path", append: true) { |fd| fd << "hello world" }
Atomic copy:
File.atomic_copy("some/src/path", "some/dst/path")
Atomic replace:
File.atomic_replace("some/src/path") { |src_fd, dst_fd| dst_fd << "hello" << src_fd.gets_to_end }
Contributing
- Fork it ( https://github.com/chris-huxtable/atomic_write.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Chris Huxtable - creator, maintainer